Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resizing Pageframe
Message
 
 
To
22/02/2000 10:02:34
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00335363
Message ID:
00335771
Views:
22
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform