Right Mouse Click Context Menus in Multi-edit Tables (OpenInsight Specific)
At 06 DEC 1999 04:53:27PM Karim Sylla wrote:
I have not been able to generate custom context menus by right clicking in Multi-Edit table (MET) cells (even in edit mode). The method that works for edit lines & boxes does not seem to function in METs.
Can anyone help me?
At 07 DEC 1999 07:50AM Don Merkey National Software Systems wrote:
I believe that the value passed in Message for a right mouse click on an edit table is 123.
At 07 DEC 1999 08:08AM Mike Ruane, WinWin Solutions Inc wrote:
Karim/Don
x=Send_Message(Control, 'QUALIFY_EVENT', '0x7b', 1)
where control is an edittable.
Hope it helps-
Mike Ruane
WinWin Solutions Inc.
WWW.WinWinSol.Com
At 07 DEC 1999 10:11AM cpates@sprezzatura.com - [url=http://www.sprezzatura.com]Sprezzatura Group[/url] wrote:
Karim,
This was supplied by a very helpful allegedly ex-employee at RevSoft…
Edittables consists of two windows:
1) Internal (DataTbl class) and
2) External (EditTbl class).
Presentation Server (OI) only traces the external one, so it doesn't see the messages sent by Windows to the internal window (unless the internal window explicitly re-sends it). However, there is a message (WM_PARENTNOTIFY – 0x210) that is being re-sent for all the mouse events to the external window with wParam= and lParam=
To use:
1) On CREATE event for a window qualify the edittable's event:
equ WM_PARENTNOTIFY$ to 528 ;* 0x210...Send_Message(@window:'.TABLE', 'QUALIFY_EVENT', WM_PARENTNOTIFY$, 1)2) On WINMSG event for an edittable check for right button click and
re-send it which will trigger the context menu logic.
hWnd and lParam are passed in for WINMSG eventequ WM_RBUTTONDOWN$ to 516 ;* 0x204if wParam=WM_RBUTTONDOWN$ thencall PostMessage(hWnd, WM_RBUTTONDOWN$, 0, lParam)endRegards
cpates@sprezzatura.com
World Leaders in all things RevSoft