Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic Resizing of Form it's objects based on scrn. res
Message
De
22/06/1997 10:58:02
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00036852
Message ID:
00037347
Vues:
38
> > 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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform