E1M1 Posted June 2, 2011 Share 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 Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted June 2, 2011 Share 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 Link to comment Share on other sites More sharing options...
E1M1 Posted June 2, 2011 Author Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now