[RESOLVED] Any way to tell if user set OS to large font?
I have an app which uses a toolbar with several buttons. A couple of users who have set their operating system to use large fonts reported all the toolbar buttons don't show. Apparently their larger fonts are causing the toolbar to expand beyond the limits of the form.
Is there a way to tell if the OS has been set to large fonts instead of the default display. What I want to do is just give them a message that the toolbar may not display correctly and they should use the equivalent task from the menu bar instead of the toolbar. Something like that.
Users have systems ranging from XP to Vista.
Re: Any way to tell if user set OS to large font?
Code:
DPI = 1440 / Screen.TwipsPerPixelX
Or just use the TwipsPerPixelX value. Normal is 15, large fonts 12, other values would be custom.
Pretty much everyone uses square pixels now as far as I know, so the Y value is probably not worth testing (would be the same).
Re: Any way to tell if user set OS to large font?
Thank you for the quick response. I didn't even think about just checking the screen.twipsperpixelx. I was afraid it would take an API call or something.
That makes it very simple. In fact I did some tests and may be able to just modify some of the forms and they will appear OK with the larger fonts. There are some lines and things that don't get put into the right place when the large fonts are set for the OS. I can simply move them upon form.load to the correct place when large fonts are set.