How do I retrieve Pane Size? |
Post Reply |
Author | |
gallman
Newbie Joined: 06 September 2004 Status: Offline Points: 18 |
Post Options
Thanks(0)
Posted: 05 November 2004 at 1:35pm |
Hi I am using the v9.51 ActiveX version of the DockingPane under VB6/SP6. QUESTION: Is there a way to retrieve a pane's current size (e.g. Pane.Height, Pane.Width)? NOTE: I already reviewed topic "Topic: pane width/resize" but this specific question was not answered. I didn't see this property available but wanted to ensure I wasn't missing the obvious. This feature is important because I need to save/restore this information dynamically as the user hides and shows panes. If there is a suggested workaround, I am open to suggestions. Thanks! Edited by gallman |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Currently you can't. However you can use the loadstate,
loadstatefromstring, savestate, and savestatetostring methods to
save\restore the pane layout anytime you want.
|
|
gallman
Newbie Joined: 06 September 2004 Status: Offline Points: 18 |
Post Options
Thanks(0)
|
Thanks. Please add these properties to the next build. They would be convenient.
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
I was told to use the width/height of the form attached to the pane to get the pane width and height.
|
|
gallman
Newbie Joined: 06 September 2004 Status: Offline Points: 18 |
Post Options
Thanks(0)
|
Thanks SuperMario, I will try this. Does this imply that I can force the pane's width/height by seting the form's relative properties? |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
No, when you attach form it will automatically be sized to the size of
the pane. Changing the size of the form manually will only result
in making the form within the pane smaller or bigger. If you must
change the width\height use the Min\MaxTrackSize properties.
|
|
gallman
Newbie Joined: 06 September 2004 Status: Offline Points: 18 |
Post Options
Thanks(0)
|
First, let me reiterate my strong request to add get/set Pane.Height and Pane.Width to the next build because these workarounds are inconvenient. QUESTION: How is CX used by CreatePane to accurately set the pane size? The meat behind my question follows. Regarding the workaround for getting a pane's current height/width, I tried the workaround of getting the form's size and storing that so that I can use those values when loading a pane. However, I can't find the correlation between the coordinates used during CREATEPANE and the form's width. For example. (a) I ensured that the DockingPane and the pane's form are both set to the same ScaleMode. I tried the following combinations: Thanks!
Edited by gallman |
|
Ashm01
Newbie Joined: 21 December 2004 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Yes, How do I Set the Pane Size????
|
|
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 |