Print Page | Close Window

Problem Resetting A Panes Width

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=9212
Printed Date: 31 January 2025 at 9:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem Resetting A Panes Width
Posted By: StephenW
Subject: Problem Resetting A Panes Width
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net