Results 1 to 37 of 37

Thread: [vb6] Per-Monitor DPI Awareness Framework

Threaded View

  1. #10
    Fanatic Member
    Join Date
    Aug 2016
    Posts
    609

    Re: [vb6] Per-Monitor DPI Awareness Framework

    Quote Originally Posted by Krool View Post
    I did not mean that. The form (non-client) is automatically scaled by the OS. If the DPI changed the size and font and graphics needs to draw "bigger" or "smaller" as per current monitor. And that's not the case..

    It would be better you do not use PerMonitorV2 and just use system DPI awareness. That's already a small challenge to properly handle that.

    If you then move to another screen with DPI change let the OS bitmap stretch your Form. So it looks correctly sized though a bit blurry.. but better than nothing.

    I propose you read LaVolpe tutorial: https://www.vbforums.com/showthread....eing-DPI-Aware

    Quote Originally Posted by LaVolpe View Post
    looks like you are on the right path, ensure you change all properties that may scale & that includes whatever font the control may be using. Of course this is impossible unless you a) have source code or b) the control exposes the font(s) and needed properties (for example possibly some offsets).
    I have tried your framework by adding some controls of Krool's VBCCR17.OCX, VBCCR17 failed to do auto scale. Can you write a new utility to support VBCCR.OCX? Is it possible without changing source code of VBCCR to make them DpiAwareness to PerMonitorV2?
    Attached Images Attached Images  

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