Print Page | Close Window

Change the site of the pane

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=21990
Printed Date: 20 April 2024 at 9:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Change the site of the pane
Posted By: McKloony
Subject: Change the site of the pane
Date Posted: 12 November 2013 at 4:01am
Is it possible to change the size of the pane after it was created? With the help of the FindPane method it is possible to look for the pane, but its size can not be changed then.

-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6



Replies:
Posted By: SuperMario
Date Posted: 12 November 2013 at 8:50am
Using min/max you can.  See the SDI Pane sample for an example.


Posted By: McKloony
Date Posted: 13 November 2013 at 4:03am
for an Pane objeckt the is no min/max property. You can only set the MinTrackSize und the MaxTrackSize property.

-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6


Posted By: SuperMario
Date Posted: 13 November 2013 at 8:30am
Setting the min and max to the same size will lock the pane to a specific size.

  Pane.MinTrackSize.SetSize 100, 100
  Pane.MaxTrackSize.SetSize 100, 100

If the pane is docked to the Left\Right, then the "Width" will be used, if Top\Bottom, then the "Height" specified will be used. The only time both width and height are used is when the pane is floating.

If you do not want the pane "locked", then use the code above to resize the pane to the desired size, then use this code to set the mix\max the pane can be sized to:

  'Remembers previous size settings
  DockingPaneManager.NormalizeSplitter s

  'Sets the minimum and maximum sizes the splitter can move
  'Note, this will not resize the pane, it is specifying how
  'large the user can move the splitters
  'Maximum\Minimum size will be 0x0 and 200x200
  Pane.MinTrackSize.SetSize 0, 0
  Pane.MaxTrackSize.SetSize 200, 200


  DockingPaneManager.RedrawPanes  


Posted By: McKloony
Date Posted: 13 November 2013 at 9:44pm
Thanks it works!

-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6



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