I've added a right-click menu trigger for the QM code editor control, but this causes the right-click comment functionality in the line number bar to fail.
Is there a simple way to exclude it?
I've encountered the same issue in LA as well.
Thanks in advance.
;Returns 1 if mouse is in a Scintilla control but not in margins. Else 0. ; ;hwndSci - Scintilla control handle. It can be any Scintilla control, eg in QM, LA, Notepad++.
POINT p;xm p ScreenToClient hwndSci &p
RECT r;GetClientRect hwndSci &r if(!PtInRect(&r p.x p.y))ret
int i marginsWidth for(i 05) marginsWidth+SendMessage(hwndSci SCI.SCI_GETMARGINWIDTHN i 0)