how to add rightclick mouse buttons in scintila wnd
-
hi i'm programming a document using scintilla wnd... here on right clicking mouse button my own popup menu should come..but by default it is showing some popup menu with cut,copy,paste... i have added mine using RButtonUp function but it is not sensing that function...any help please..thanx in advance...
-
hi i'm programming a document using scintilla wnd... here on right clicking mouse button my own popup menu should come..but by default it is showing some popup menu with cut,copy,paste... i have added mine using RButtonUp function but it is not sensing that function...any help please..thanx in advance...
Have you tried overriding OnRButtonDown? After all, that happen first... Or checked if there's an overridable member OnContextMenu? Lastly, have you added the macros (ON_WM_RBUTTONetc) to your message map? You need to hook up your handler as well as write it. Iain.
-
Have you tried overriding OnRButtonDown? After all, that happen first... Or checked if there's an overridable member OnContextMenu? Lastly, have you added the macros (ON_WM_RBUTTONetc) to your message map? You need to hook up your handler as well as write it. Iain.
yah!i have tried with adding WM_RBUTTONUP message using class wizard but it is not at all sensing the function when i press rightmousebutton ...even i tried with WM_RBUTTONDOWN through class wizard,neither is working.... i have avoided the default scintilla wnd's popmenu also by using SCI_USEPOPUP(false)... as you said these WM_RBUTTONUP are working well in other windows not in scintilla wnd... any help thanx in advance....