RadCheckBox size on high DPI screens

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

    Posted 26 Jul Link to this post

    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

     

  2. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 27 Jul 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.
     
    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top