Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic Resizing of Form it's objects based on scrn. res
Message
From
22/06/1997 10:58:02
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00036852
Message ID:
00037347
Views:
43
> > 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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform