Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PageFrame Height & Pageheight
Message
From
17/09/2002 09:05:56
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00701189
Message ID:
00701219
Views:
21
Hi Armin,

My problem is to change the height of the pageframe from within resize. If something is larger than pagheight I need to change Height.
.PAGEHEIGHT = lnValue
is impossible, since Pageheight is readonly.

The idea was to let the pagefame act like a form, where you can do:
thisform.minheight = 100
thisform.height    = 50
?thisform.height &&100
Agnes
>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
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]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform