SpellChecker and WS_EX_COMPOSITED

Posted by: o_stuff on 19 July 2019, 9:12 am EST

  • Posted 19 July 2019, 9:12 am EST

    Hi,

    to avoid flickering on my very huge forms, I use WS_EX_COMPOSITED (double buffer only does not help).

    public class MyPanel : Panel {

    protected override CreateParams CreateParams {

    get {

    CreateParams cp = base.CreateParams;

    cp.ExStyle |= 0x02000000; // WS_EX_COMPOSITED

    return cp;

    }

    }

    }

    I also need to use the C1SpellChecker to validate and correct input to TextBoxes.

    But the C1SpellChecker does not work, if WS_EX_COMPOSITED is enabled. Misspelled words are no longer underlined than.

    What could I do to make both work together?

  • Posted 22 July 2019, 9:24 am EST

    Hello,

    We too can replicate the change in behavior at our end and we have escalated it to the developers.

    We will let you know once we get any updates from the developers.

    For a time being don’t override CreateParams property and set ExStyle in the Form’s constructor.

    Please refer to the attached sample where I have implemented the same.

    Thanks and Regards,

    Prabhat Sharma.

    SpellCheckerDemo.zip

  • Posted 22 July 2019, 10:55 am EST

    Thanks for the quick reply.

    Unfortunately, using ExStyle in the constructor has no noticeable effect. The GUI still flickers. Hopefully, this issue can be solved.

  • Posted 24 July 2019, 4:46 am EST

    Hello,

    Thank you for the confirmation.

    Case has been escalated to the developers [Internal tracking ID : 391183].

    We will get back to you once we get any information from the developers.

    Thanks and Regards,

    Prabhat Sharma.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels