Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resizing Pageframe
Message
 
 
À
22/02/2000 10:02:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00335363
Message ID:
00335771
Vues:
20
Matt,

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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform