This is a migrated thread and some comments may be shown as answers.

RadCheckBox size on high DPI screens

1 Answer 181 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Thomas Bargholz
Top achievements
Rank 1
Iron
Thomas Bargholz asked on 26 Jul 2016, 12:08 PM

Hi,

When running on high DPI screens, with scaling set to e.g. 200%, the checkbox portion of RadCheckBox does not scale. It stays at the 16x16 px checkbox. The text and the width and height scales perfectly, but theactual checkbox stays at the 100% / 96dpi size on all DPI settings and all scale values.

All other parts of the Telerik WinForms controls scale as expected, so it's only the checkbox that doesn't behave as expected.

 Is this a bug, or is there some way to tell the checkbox section to increase size?

Here is the code I use to tell theform that it must scale (which works perfectly on all other controls):

this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.AutoSize = true;

// m_DpiScale is the sxaling size of the users screen, 1.0 for 100%, 1.5 for 150% and so on.
this.Scale(new SizeF(m_DpiScale, m_DpiScale));

I'm using Telerik version 2016.2.608.40.

Best regards

Thomas

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 27 Jul 2016, 09:27 AM
Hi Thomas,

Thank you for writing.

I was able to reproduce this issue. It is caused because currently, the check mark is using a fixed size. I have logged this issue in our Feedback Portal. You can track the item for status changes and add your vote for it here.

To workaround this you can set the MinSize:
this.radCheckBox2.ButtonElement.CheckMarkPrimitive.CheckElement.UseFixedCheckSize = false;
this.radCheckBox2.ButtonElement.CheckMarkPrimitive.CheckElement.MinSize = new Size(100, 100);

Your Telerik Points have been updated for this report.

Should you have any other questions do not hesitate to ask.
 
Regards,
Dimitar
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Thomas Bargholz
Top achievements
Rank 1
Iron
Answers by
Dimitar
Telerik team
Share this question
or