Form and Control "Automatic" Scaling

Started by Mark Strickland, January 13, 2006, 03:00:42 PM

Previous topic - Next topic

Mark Strickland

I have an application that was built to fit 1024x768 but a few folks like to run their machines at 800/600.  It really needs the bigger screen to work well because of the number of controls.

Does anybody have any experience at scaling an application without having to do it by hand?

I had one crazy thought that maybe I could write a program to process all of the FF form files in the project and modify the pixel sizes of every control by a factor.  It would also have to modify the x/y starting coordinate of each control also.  I am sure a few things would not work out but they could be corrected by hand.  I only have a few cases of dynamically sizing a form before it opens.

My worry would be the scaling math would not work out very exact and things would be off a few pixels here and there creating lots of clean up.

Any thoughts?

Thanks.

TechSupport

That's a tough question because you're implying that all of your controls will need to be scaled down to a smaller size. Sure that can be done, but you will run into additional issues such as having to also scale down the fonts used in your controls. Image making a Command Button smaller but keeping the same 8 or 10pt font. The font would probably no longer fit on the button. Also, there may not be a scaled down font small enough to fit the smaller control.