Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PageFrame Height & Pageheight
Message
From
17/09/2002 08:29:26
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
PageFrame Height & Pageheight
Miscellaneous
Thread ID:
00701189
Message ID:
00701189
Views:
54
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
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Next
Reply
Map
View

Click here to load this message in the networking platform