Problem Resetting A Panes Width |
Post Reply |
Author | |
StephenW
Groupie Joined: 21 November 2007 Location: United Kingdom Status: Offline Points: 34 |
Post Options
Thanks(0)
Posted: 03 January 2008 at 7:00am |
Hello
I am trying to have a menu button reset a left side docked pane's width when clicked. I have used the code from the NormalizeSplitters help for this and nothing happens. Modifying the code to close and re-open the pane does actually have an effect, but I believe this is only due to it pinning the pane (when the user unpins it the correct width gets set). How can I set this width without having to force the pane to be pinned and relying on the user to unpin it ?
' Find the pane and change its width to the default
Set objPane = objDockingManager.FindPane(1) objPane.Close ' Resize pane width (100 height is not used as docked to left so uses all available height)
objPane.MinTrackSize.setSize 490, 100 objPane.MaxTrackSize.setSize 490, 100 ' Remember previous SetSize settings objDockingManager.RecalcLayout objDockingManager.NormalizeSplitters ' Set the minimum and maximum sizes the splitter can move (100 height is not used as docked to left so uses all available height)
objPane.MinTrackSize.setSize 300, 100 objPane.MaxTrackSize.setSize 1000, 100 ' Pin the pane (when the user unpins it will have the correct size now) objPane.Select |
|
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 |