Results 1 to 14 of 14

Thread: Windows "Large Fonts" Setting messes up my forms!

  1. #1

    Thread Starter
    Addicted Member jestes's Avatar
    Join Date
    Jan 2001
    Location
    Dallas
    Posts
    248
    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.

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    Addicted Member jestes's Avatar
    Join Date
    Jan 2001
    Location
    Dallas
    Posts
    248

    Windows properties

    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?

  4. #4
    New Member
    Join Date
    Feb 2001
    Posts
    15
    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.

  5. #5

    Thread Starter
    Addicted Member jestes's Avatar
    Join Date
    Jan 2001
    Location
    Dallas
    Posts
    248

    It's definitely large/small fonts

    On my machine I changed the font size setting in Windows properties and got the same results as the clients did.

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  7. #7

    Thread Starter
    Addicted Member jestes's Avatar
    Join Date
    Jan 2001
    Location
    Dallas
    Posts
    248

    I've gotten the values of...

    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.

  8. #8
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  9. #9

    Thread Starter
    Addicted Member jestes's Avatar
    Join Date
    Jan 2001
    Location
    Dallas
    Posts
    248

    ya

    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?

    Code:
    Code:
    If screen.twipsPerPixel < 15 Then
    screen.twipsPerPixel = 15
    End if
    thanks

  10. #10
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  11. #11
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    only solution i like

    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...

  12. #12
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    i think that this is an issue.

    Some people with big monitors have large fonts set because they run ridiculous resolutions such as 1600x1200.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  13. #13
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Talking haha

    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...

  14. #14
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    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.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width