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