Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Position off the screen.....
Message
From
26/08/1998 10:11:21
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00129832
Message ID:
00130063
Views:
53
Jim,

>The problem is that the height to width ratios of MS Sans Serif changes at different resolutions and point sizes. This may not cause a Position off screen error for you but it will cause all of the nice alignment of objects that you have done to be screwed up on you. You will especailly see it when the form was designed for 640X480 with small fonts and the user is running at 1024X768 with large fonts.

I agree using a raster font won't be satisying in all cases, but when you use a rasterfont it does NOT have to lead to a "position off the screen" error.
If you carefully use the right objectfonts you CAN develop a application that reacts on different font sizes like the display properties applet.

Though i know there are some limitations (using listboxes with a courier font will misalign) i still do think that using raster fonts can be usefull.

>If I were in your position I would NOT go back and change things already done, but I would take the lesson and use True Type fonts in the future with FP 2.X.

When my users choose to use large fonts, they expect to get large fonts. So i do think my application is having the right behaviour.


>The 2.115 and 5.252 are foxel positions which are based on 2.115 average character heights and 5.252 average character widths from the 0,0 position in the currrent window. If the height to width ratio changes for the background font for that window the position of the object will move. Now for the icing on the cake, for the size of the object the object's font is used and not the font of the window. This means that if the window font is a raster font and the object's font is a raster font, the size and position may change by different amounts. True type fonts always adjust by preserving the height to width ratio for all resolutions and point sizes.

In my case i use ms sanse serif for both desktop and window background. This leads to a well aligned screen in all cases where ALL objects are positioned correctly. When you're using ms sanse serif for labels and other (not all)objects you can have a application that correctly responds to larger screen fonts

Walter Meester
Tax Software
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform