Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PageFrame Height & Pageheight
Message
 
To
17/09/2002 08:29:26
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00701189
Message ID:
00701207
Views:
13
Hi Agnes,

how about only working with PageHeight? If you specify the minimum pageheight everything should work ok. Or do you have a special need to specify the minimum height of the pageframe itself?

HTH,
Armin

>Hi all,
>
>How can I calculate the difference between Pageframes HEIGHT and PAGEHEIGHT?
>
>Let me show you the situation:
>
>I change Pageframes Height via code
>
>
>thisform.pgfFrame.Height = 200 && oldvalue was 350 for example
>
>
>The RESIZE event of the pageframe tries to check minheight etc. and stop the thing shrinking. If there is a limit the height should stop at this.
>
>This looks like
>
>with this
>lnMinheight = max(.calculate_minheight(),.minheight)
>
>if lnMinheight>.pageheight
>.HEIGHT = lnMinheight+Offset_Between_Height_And_PageHeight
>endif
>...
>
>
>So the problem is to get Offset_Between_Height_And_PageHeight.
>
>My first try was to calculate
>
>...
>Offset_Between_Height_And_PageHeight = .height-.pageheight
>...
>
>
>but this will result in cruel results.
>
>If I trace the calculation, I can see that Pagheight is on new value something smaller then 200, but height stucks on the old one (350 in this example).
>
>So my idea now is to calculate Offset_Between_Height_And_PageHeight from the bottom (with things like Borderwidth), but I have no idea what may be nedded for a right value.
>
>
>Thank you for your ideas
>
>Agnes

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform