The MASM Forum Archive 2004 to 2012

Specialised Projects => Custom Interface Components => Topic started by: msmith on May 14, 2006, 05:53:07 AM

Title: RAEdit Text Colorization
Post by: msmith on May 14, 2006, 05:53:07 AM
Ketil,

I find that I can dynamically change which words in a group will be colorized by rebuilding the string of words and invoking SendMessage with REM_SETHILITEWORDS and it works fine.

If I just want to change the color for a group, I tried invoking SendMessage with REM_SETHILITEWORDS with the old string arg and a new color arg. It does not change.

This makes it appear that I must restart the program for the new color to take effect. I know this is not true because I tried dynamically changing colors of groups on your RadAsm program and it works fine.

What is the secret of how you do this?

Thanks,

Mike
Title: Re: RAEdit Text Colorization
Post by: KetilO on May 14, 2006, 11:44:42 AM
Hi

You must first reset all words with SendMessage,hREd,0,0 and then rebuild the words.

KetilO
Title: Re: RAEdit Text Colorization
Post by: msmith on May 14, 2006, 07:25:04 PM
Ketil,

Thank you.

Mike