RE: Resizing forms and controls

Author: Derek J. Kalweit

Posted: 2002-10-24 at 17:32:18

> > Can anyone point me to articles or information on resizing=20

> VFP forms and

> > controls according to the screen resolution settings. With=20

> the latest

> > video cards having bigger screen resolutions, there are=20

> users who seem to

> > think that because they can have 1280 x 1024 resolution,=20

> they should.

> > Problem is, when they run an app build for 640 x 480, they=20

> can hardly see

> > it!

> I never understood this. Greater resolution allows you to=20

> put more on your=20

> screen, which necessarily means that each thing is smaller. =20

> By scaling the=20

> controls you gain nothing.

True, but sometimes certain specific applications are meant to be the =

equivelent of system-modal-- they're the ONLY thing used at the time. =

For this, resizing is nice. There's also the fact that LCD's can't =

usually do less than 800x600, so you really NEED to scale to fit =

those...

> However, I think there are utilities for scaling your object=20

> on the UT.

I use a sizer object in my app that Ed Leafe gave us when he did some =

consulting work. I'm not sure where he got it, or if he wrote it =

himself, or if there's a more recent version out there-- it is VERY =

thorough, going through all the objects, children, etc. Sometimes I wish =

I could just pass in some parameters telling it exactly what it should =

look for to save some CPU time(it can be CPU-intensive if you do it =

often(ie: with dynamically created objects) or have sizeable .Resize() =

events on your objects).

©2002 Derek J. Kalweit