Jump to content

GUI problems with 144 DPI


Cybot

Recommended Posts

Hi,

 

there are some minor glitches on systems with non standard DPI settings, as seen on the screenshot (taken from a system with 144 DPI)

 

Reproduce:

 

Windows XP:

Display Properties -> [TAB] Settings -> [button] Advanced -> [TAB] General? -> Display -> DPI-Settings

 

p.s. i don't know if i guessed the english names right, as is use a german windows version

 

post-1345-1143282878_thumb.jpg

post-1345-1143282878_thumb.jpg

Link to comment
Share on other sites

Well of course it's the font size... but that's not the user's fault, it's CCleaner's fault for not scaling the form and components to the DPI.

 

It's easy to do in Delphi, but maybe not so easy in VB ...

 

In Delphi, I simply turn auto-scaling off in the form properties, and use this code in every form:

 

procedure TYourForm.FormCreate(Sender: TObject);begin if Screen.PixelsPerInch <> PixelsPerInch then ScaleBy(Screen.PixelsPerInch, PixelsPerInch); {...the rest of your FormCreate procedure...}end; 

 

 

And like magic, everything turns out perfectly.

Click here if CCleaner Issues are re-appearing

 

DjLizard.net

DjLizard.net wiki

Dial-a-fix

Dial-a-fix tips

DjLizard.net software support forum

 

Do you live in Bradenton, Sarasota, Tampa, or St. Petersburg, Florida? Visit Digital Doctors where I work :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.