Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PageFrame Height & Pageheight
Message
De
17/09/2002 08:29:26
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
PageFrame Height & Pageheight
Divers
Thread ID:
00701189
Message ID:
00701189
Vues:
55
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]
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform