Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any formula for resize font when resizing form?
Message
From
09/12/2009 23:15:53
 
 
To
08/12/2009 10:30:37
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01438061
Message ID:
01438324
Views:
158
>Hi All,
>
>I want to resize my fontsize when resizing my form. I need that for my POS application when using screens other than 800x600. Is there any formula for calculate whick fontsize I should use like that:
>
>if when 800x600 ..... my font size 10
>
>when 900x700 .... my font size should be 11
>
>...
>
>...

Hi Metin

But resizing the font (larger/smaller) based on the size of the form appears to be something only VFP dev's do, and that to not all of them.

I have used hundreds of different apps over the years and , there has not been a single instance of the font on a form being changed (resized) because of the form being resized.

All Microsoft products, VStudio, Office, IE you name it, also the number of other apps you download on the internet, and the font size is never, ever changed when the form is resized. Never. Yet I have seen this being asked by VFP dev's where they want to resize a form's font proportionally when the form is resized.

With today's high resolution monitors (a small form say 400x400) would have a huge font size if it were resized full screen.

IMO the font size should never be changed like this based on a form's size.

I don't know why VFP dev's insist on this font resizing as no other language DEV's ever do this.

Do you have an example of a commercial app (other than some VFP app) where the DEV resizes the font based on the form size?

From your initial Q you want this facility not on the resize but on a change in resolution is what I think.
As a POS app you want it full screen and you want to increase the font size when the resolution is increased.

I think you should cater for certain resolutions only rather than trying to get a formula. The problem is that now a days we have these wide screen monitors as well so if you use the normal formula you will get distorted text - short and wide.

A better option is to resize your form then allow the user to increase/decrease the font size a_la_firefox 's CTRL +

Hope this makes sense.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform