Jump to content
  • Advertisement
Sign in to follow this  

Rich Edit Controls

This topic is 4202 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm making a little syntax highlighter for my scripting language and it's all working the way it should, but during updating of the text colouring etc, sometimes you can notices the flickers when I'm selecting each bit of text to format it. i.e. SendMessage (hRECtrl, EM_SETSEL, wordStart, wordEnd); SendMessage (hRECtrl, EM_SETCHARFORMAT, 0, (LPARAM) &cr); // etc I tried using the LockWindowUpdate function to stop it from updating the window until I'm finished, as well as trying to update the formatting in the EN_UPDATE notification but those too proved to be quite hideous. Lock window update would slow it to a halt, and doing it on EN_UPDATE would keep on updating it constantly which was freaky. I'm currently updating the formatting on EN_CHANGE notification (i.e. when u type a character in the edit control) which is seemingly the place you should do it, but I just want to get rid of the flickering. Any solutions? Thanks in advance.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!