How can I change the panes size |
Post Reply |
Author | |
9rap
Newbie Joined: 07 March 2005 Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 08 March 2005 at 1:19am |
How can I change the pane's size after it has created. |
|
gshawn
Senior Member Joined: 04 October 2004 Status: Offline Points: 227 |
Post Options
Thanks(0)
|
I don't know anything about C++, but this could be a possible way to do it in the ActiveX version... should translate easily to the C++ version. Basically, save the values of the pane's min/max tracksizes into variables, then set both min and max tracksizes to the size you want to resize the pane to (300x200 pixels here), then restore the min/max tracksize properties. It's an ungly hack, and as far as I know it would only work with undocked panes... MinWidth = DockingPaneManager.Panes(i).MinTrackSize.Width DockingPaneManager.Panes(i).MinTrackSize.SetSize 300, 200 DockingPaneManager.Panes(i).MinTrackSize.SetSize MinWidth, MinHeight |
|
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 |