[SOLVED] Resize pane |
Post Reply |
Author | |
rdeboer
Groupie Joined: 29 April 2004 Location: Netherlands Status: Offline Points: 81 |
Post Options
Thanks(0)
Posted: 03 March 2011 at 5:34pm |
Hi,
Is there a way to resize a pane from within the program? I have 2 panes next to each other, the left one is a videoplayer (picturebox). Now if i change the pane height of the videoplayer, the width should also change, to keep the video proportion correct. I tried to change the Form.Height and Form.Width, but the pane doesn't re-fit on the new forms size. So the pane height is done manually, and the pane width should automatically resize. Any idea how to do this? See Picture |
|
Product: Xtreme Suite Pro (ActiveX) version 11
Platform: Windows XP SP3 (32bit) Language: Visual Basic 6.0 SP6 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Try such code
' Set Size of Pane A.MinTrackSize.Width = NewWidth A.MaxTrackSize.Width = NewWidth DockingPaneManager.RecalcLayout DockingPaneManager.NormalizeSplitters DockingPaneManager.RedrawPanes ' Restore Constraints A.MinTrackSize.Width = 0 A.MaxTrackSize.Width = 32000 |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
rdeboer
Groupie Joined: 29 April 2004 Location: Netherlands Status: Offline Points: 81 |
Post Options
Thanks(0)
|
Thank you, that worked
|
|
Product: Xtreme Suite Pro (ActiveX) version 11
Platform: Windows XP SP3 (32bit) Language: Visual Basic 6.0 SP6 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |