Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - How to Calculate Exising Pane Size
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to Calculate Exising Pane Size

 Post Reply Post Reply
Author
Message
gallman View Drop Down
Newbie
Newbie


Joined: 06 September 2004
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote gallman Quote  Post ReplyReply Direct Link To This Post Topic: How to Calculate Exising Pane Size
    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.
Back to Top
Zach View Drop Down
Groupie
Groupie


Joined: 19 July 2006
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote Zach Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
LittleJK View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 April 2006
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote LittleJK Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.