Print Page | Close Window

How to Calculate Exising Pane Size

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=7023
Printed Date: 04 July 2024 at 12:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to Calculate Exising Pane Size
Posted By: gallman
Subject: How to Calculate Exising Pane Size
Date 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.



Replies:
Posted By: Zach
Date Posted: 09 May 2007 at 1:10pm
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...


Posted By: LittleJK
Date Posted: 21 May 2007 at 11:52am
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.



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