Click to See Complete Forum and Search --> : Windows "Large Fonts" Setting messes up my forms!
jestes
Mar 5th, 2001, 09:47 AM
Is there any way I can keep this from happening? My background and button graphics get moved all around, but when I change the setting back to small fonts.... it gets better.
kedaman
Mar 5th, 2001, 10:27 AM
Where do you change that? I recall i had similar problems when transfering old vb3 apps to vb5, and i thought it was about the twips per pixel rate.
jestes
Mar 5th, 2001, 12:17 PM
I'm not changing anything within my dev environment, I'm changing windows properties from 12 ppi to 15. Is there any way I can change the twipsPerPixel on the fly?
loopfish
Mar 5th, 2001, 12:38 PM
Yes,
Changing the scale mode on your forms and objects will but I dont think that this would fix your problem.
Some video cards come with software that will cause you the same problems and are not related to the windows small/large fonts.
jestes
Mar 5th, 2001, 12:53 PM
On my machine I changed the font size setting in Windows properties and got the same results as the clients did.
kedaman
Mar 5th, 2001, 01:01 PM
Scalemode should be set to twips, i guess this solves your problems since the positions are stored in parent object scale units. Alternatively you can get the twips per pixel rate with Screen.twipspixelX and screen.twipsperpixelY
jestes
Mar 5th, 2001, 01:09 PM
TwipsPerPixelX and Y, but now that I have those values, is there any way I can store them so that no matter what environment my app is in, these won't change? I'm sorry, but I'm pretty new to vb programming.
kedaman
Mar 5th, 2001, 01:42 PM
They change according to what environment your app is in, that's the idea having them at all. Did you try out setting scalemode to twips?
jestes
Mar 5th, 2001, 01:48 PM
I'm set up for twips. God this is so frustrating.. this code doesn't work but is there any way of doing something similar?
If screen.twipsPerPixel < 15 Then
screen.twipsPerPixel = 15
End if
thanks
kedaman
Mar 5th, 2001, 02:12 PM
They are read only, they indicate how many twips goes into a pixel, which mean you are willing to change the settings back? Twips scalemode should work, try it out, although you have to resize/position each control after you saved it last time after saving with twips. Once you do it in twips, the positions and sizes are fixed to your screen settings.
nemaroller
Mar 17th, 2001, 11:35 AM
This might not be the solution you'd like to hear... but
I simply put in an API call and if the system is using large fonts, display a message box stating the user must set the system fonts to small (standard 96dpi), and then end the program. (Most people are using large fonts on their video cards by accident and never really knew they set it... ie. I developed an application for doctor's offices, and a few users had this problem... the only solution I offered them was to set their fonts to standard... its easy and its not difficult for the user if you provide the steps in a manual...
saves you frustration...
Lord Orwell
Mar 17th, 2001, 01:44 PM
i think that this is an issue.
Some people with big monitors have large fonts set because they run ridiculous resolutions such as 1600x1200.
nemaroller
Mar 17th, 2001, 01:58 PM
have you seen the monitors in most doctor's offices...
they're lucky if they get one at 17"...
anyway, like i said, its an easy solution...
Lord Orwell
Mar 17th, 2001, 02:28 PM
well if you are programming for a specific place, such as a doctor's office, you could probably take that into account. But another reason people use large fonts is that they can't read small ones. My neighbor has a 14 inch monitor and she can't read the text onit when its in small font mode. And she's not THAT old. She's in her early 50s, which is a common age for doctors, iwould imagine.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.