RadCheckBox size on high DPI screens

2 posts, 0 answers
  1. Thomas Bargholz
    Thomas Bargholz avatar
    14 posts
    Member since:
    Oct 2006

    Posted 26 Jul 2016 Link to this post


    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



  2. Dimitar
    Dimitar avatar
    2983 posts

    Posted 27 Jul 2016 Link to this post

    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.
    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.
Back to Top