Jump to content

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


Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...