E1M1 8 Posted June 2, 2011 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
AdmiralAlkex 125 Posted June 2, 2011 According to helpfile the eventmask is:BitOr combination of :So BitOr($ENM_LINK, $ENM_MOUSEEVENTS) should work, did you try that? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Share this post Link to post Share on other sites
E1M1 8 Posted June 2, 2011 (edited) 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 Edited June 2, 2011 by E1M1 edited Share this post Link to post Share on other sites