Screen DPI and Scaling

Topics related to the Krypton Toolkit.

Moderators: Phil Wright, Chris Porter

Screen DPI and Scaling

Postby manji » Fri Oct 31, 2008 11:36 am

I narrowed down some of the DPI scaling issues with Krypton. It would seem that Dock works perfect, but when a control has Anchor turned on, Krypton isn't scaling the anchored position with a new DPI set in Windows. I solved most issues regarding DPI by setting some controls to dock within parent container from Windows controls, but it'd be nice to have Krypton scale properly. I'm sure it's something that was overlooked.

I use Font scaling on most forms... as a note.

-Roy-
manji
 
Posts: 19
Joined: Mon Aug 18, 2008 8:00 am
Location: Washington, DC

Re: Screen DPI and Scaling

Postby Dmitry » Mon Aug 31, 2009 12:35 am

Hi,
looks like the problem still persists. In new 4.0 Krypton toolkit, design mode works almost perfect, but when I start the application everything looks awful.

Is there any workaround to fix this anchor issue? If possible without using Dock property for each textbox.

Thanks.

I use Windows 7 125% font size.
Dmitry
 
Posts: 8
Joined: Mon Aug 31, 2009 12:22 am

Re: Screen DPI and Scaling

Postby Edgar Ferreira » Mon Aug 31, 2009 6:42 pm

Hi!

I would suggest to use Margin = 0;0;0;0 whenever it is possible. This way you'll anchor your controls to container's border (perhaps a TableLayoutPanel...) without using Dock.
If you want images in buttons to resize properly, you'll need to do it by code.

Edgar
Edgar Ferreira
 
Posts: 132
Joined: Thu Mar 26, 2009 8:59 pm
Location: Coimbra, Portugal

Re: Screen DPI and Scaling

Postby Dmitry » Mon Aug 31, 2009 7:48 pm

Thanks, I have the same idea finally.

I just wonder if they use different parts of code for Design and Real modes.
Dmitry
 
Posts: 8
Joined: Mon Aug 31, 2009 12:22 am

Re: Screen DPI and Scaling

Postby cgiesen » Tue Apr 10, 2012 8:49 pm

Hello,

is this problem gone in Version 4.4?

Regards
Carsten
cgiesen
 
Posts: 32
Joined: Sun Mar 21, 2010 2:26 am


Return to Krypton Toolkit

Who is online

Users browsing this forum: No registered users and 0 guests

cron