> > one for 640x480 and one for 800x600. My client doesn't want to deal with
> > all of these different forms when we convert over to VFP 5.0.
>
> The only way that I was able to accomplish this reliably was to
> hand-code the screens, and then test is as many different resolutions as
> possible. Not a pretty solution, but it worked.
>
> I think your best bet, if you want to stick to FoxPro strictly, is to go
> with the multiple forms depending on the resolution & font size.
>
> /Paul
I tried a different trick - I have defined standard font size, computed
from screen resolution, to give me about 30-40 screen lines. Then I use
foxels as units, store the font size to a global variable, and the forms
get their size calculated upon activation. Well, not really - if you use
foxels, the size is calculated from the active window font size, so I
set _screen.fontsize=g_fontsize before instantiating any form. Looks,
well, nice enough.