How to Calculate Exising Pane Size |
Post Reply |
Author | |
gallman
Newbie Joined: 06 September 2004 Status: Offline Points: 18 |
Post Options
Thanks(0)
Posted: 01 May 2007 at 9:31pm |
LANGUAGE: VB6 I would like to create the Outlook effect of dynamically docking the preview pane either to the bottom or right of the report pane.
I found the MoveReadingPane sub in the ShortcutBarReport example. However, rather than hard-code pane sizes, I would like the preview pane to always be exactly half the size of the report pane (width or height depending on dock direction).
PROBLEM: If I try to capture the height and width of the report pane form after the DestroyPane call, the resulting height and width of the form are considerably larger than expected. Can you provide any guidance as to how I can properly calculate the height and width of an existing pane in this scenario?Thanks in advance.
|
|
Zach
Groupie Joined: 19 July 2006 Status: Offline Points: 62 |
Post Options
Thanks(0)
|
How about capture the height and width of what is in the pane?
... I do agree though that this is one area of weakness... in general... I have found lots of odd issues when I needed to know exact sizes... or when things resize, and jump around in the panes... etc...
|
|
LittleJK
Senior Member Joined: 13 April 2006 Status: Offline Points: 168 |
Post Options
Thanks(0)
|
Well one thing is that you can try changing the scale mode from being in auto or scale Pixel to scale twips to use the height of the form to create your position. such as always want it positioned 1/4 of the screen you can do height/4 or something like that.
|
|
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 |