TRichEdit.OnContextMenu
Publicado: Mar Jul 18, 2006 3:02 pm
Hi!
I tried to override standard RichEdit context menu and found that in the
code
METHOD RichEdit1ContextMenu( oSender, nPosX, nPosY ) CLASS TForm1
::ShowPopupMenu(::oPopupMenu1, nPosX, nPosY)
RETURN 1
when this event are triggered with mouse right button, nPosX and nPosY are
always equal to NIL.
If I use RichEdit1RButtonDown instead, nPosX and nPosY are OK (equal to
mouse position).
Please test it.
Thank you. Oleg.
I tried to override standard RichEdit context menu and found that in the
code
METHOD RichEdit1ContextMenu( oSender, nPosX, nPosY ) CLASS TForm1
::ShowPopupMenu(::oPopupMenu1, nPosX, nPosY)
RETURN 1
when this event are triggered with mouse right button, nPosX and nPosY are
always equal to NIL.
If I use RichEdit1RButtonDown instead, nPosX and nPosY are OK (equal to
mouse position).
Please test it.
Thank you. Oleg.