Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Problem Resetting A Panes Width
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem Resetting A Panes Width

 Post Reply Post Reply
Author
Message
StephenW View Drop Down
Groupie
Groupie
Avatar

Joined: 21 November 2007
Location: United Kingdom
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote StephenW Quote  Post ReplyReply Direct Link To This Post Topic: Problem Resetting A Panes Width
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.