Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resizing Pageframe
Message
De
23/02/2000 02:50:54
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00335363
Message ID:
00335869
Vues:
21
David,

Tried that already. What I found was that everything works fine if the following occurs before the pageframe is resized:

[1] The objects contained on a page are resized
[2] This.TabStretch = This.TabStretch

What I'm having trouble with is when a user goes changes from Small Fonts (96 dpi) to Large Fonts (120 dpi). There is probably a constant adjustment factor I haven't taken the time to figured out yet.

Any ideas?



>Another solution: trigger the pgf resize logic to fire twice and it'll compensate. I used this Form.Resize method:
>
>
with this.pgfMain
>   debugout debstr( .PageHeight, .PageWidth )
>   .Height = this.Height - 30
>   .Width = this.Width - 30
>   debugout debstr( .PageHeight, .PageWidth )
>
>   .Height = this.Height - 30
>   .Width = this.Width - 30
>   debugout debstr( .PageHeight, .PageWidth )
>endwith
>
>I noticed that with just one set of code in there when the pgf needed to adjust the number of tab rows it was off, but then sizing the form a little bit got it to the correct size. So hitting it twice during the initial resize fixes the problem.
>
>Also the .PageHeight and .PageWidth do seem to be changing for me during this sequence.
- Jeff
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform