Jump to content
Sign in to follow this  
E1M1

Impossible to make rich edit that has working URL detection and context menu at the same time?

Recommended Posts

E1M1

I want to write rich editor that reacts when user clicks on url and that would also have context menu. Problem is that for url detection I need _GuiCtrlRichEdit_SetEventMask($hRichEdit, $ENM_LINK) but for context menu I need _GuiCtrlRichEdit_SetEventMask($hRichEdit, $ENM_MOUSEEVENTS). Which means that next SetEventMask overrides previous one. Does anyone know if there is any way around this?


edited

Share this post


Link to post
Share on other sites
E1M1

Thank you.

I wonder why I didn't come up with that. Probably because of school.... haven't had time to program enough.

Actually I thought about injecting dll that would hook messages, but your's solution is better and cleaner :huh2:

Edited by E1M1

edited

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×