Last Updated: 19 Jun 2017 10:48 by ADMIN
Dess | Tech Support Engineer, Principal
Created on: 05 Apr 2017 10:46
Category: Buttons
Type: Bug Report
FIX. RadCheckBox - incorrect text rendering when the UseCompatibleTextRendering property is set to true in disabled state
Please refer to the attached sample project and gif file. The text gets clipped sometimes when resizing the form. It may become even blurry. This problem is observed with the MS Form, but it is not reproducible with RadForm.

Workaround: use a RadForm

UPDATED: a second project is attached (00393359CheckBoxDisabledUPDATED.zip). The MissingCheckBoxesText.gif illustrates the incorrect behavior. In this case, the UseCompatibleTextRendering property is set to false.
Workaround for the second case: instead of setting the RadCheckBox.Enabled property to false, disabled the check primitive and make the text gray as follows:

private void radButton1_Click(object sender, EventArgs e)
    for (int i = 0; i < 30; i++)
        RadCheckBox cb = new RadCheckBox();
        cb.Text = "RadCheckBox " + i;
        cb.Location = new Point(10, i * 30); 
        cb.ButtonElement.CheckMarkPrimitive .Enabled = false;
        cb.ButtonElement.TextElement.ForeColor = Color.Gray; 
        cb.ButtonElement.ShouldHandleMouseInput = false;
        cb.UseCompatibleTextRendering = false;