Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Evil Steve

Another RichEdit problem: CFE_LINK

This topic is 5367 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

Ok, i decided to go ahead and write my own URL detector. I get more control over it this way anyway. But, it seems that setting the CFE_LINK effect causes the text to be made into a ''standard'' URL - it changes the colour from blue to white. Heres some screenshots: First, without setting the CFE_LINK flag: Thats how its supposed to look - underlined, and blue. Now i set the CFE_LINK effect too (and dont change anything else): And it decides to change the colour to white. WTF? Does anyone know why the hell its doing this, and if theres any way of stopping it? Cheers, Steve

Share this post


Link to post
Share on other sites
Advertisement
I just tried setting just the colour (not underlineing it), and then setting the CFE_LINK effect, and it underlined it too.

Also, i''ve done SendMessage(m_hWnd,EM_AUTOURLDETECT,FALSE,0), so it shouldn''t be interfering with it.

The reason the RichEdit turns the link white instead of blue is that the backgrouns is black (although you can''t see it because its an image). I don''t know what thats about, but still...

Share this post


Link to post
Share on other sites
*bump*
This is the effect of adding the text, then trying to set the first 15 chars to be red after the text has been added:

It seems to ignore the formatting over CFE_LINK text.

Can anyone help? I *really* don''t want to have to do what i did with my previous client, and watch the users mouse pointer and check if its over a URL whenever it moves, etc etc.

Share this post


Link to post
Share on other sites

  • 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!