Intercept a Right-Click
Posted: Sun Dec 17, 2023 11:42 pm
For the combination of the following three conditions:
1) A RIGHT-Click
2) Brings up a CONTEXT MENU
3) In a BROWSE/GRID Header
What:
In the above a CONTEXT MENU appears in/above the Header row even though NO DATA ROW is, in fact, selected by the click.
The VALUE property shows the last row selected. The VALUE does NOT indicate Header focus.
Problem:
Here interception and cancellation of the MENUITEM ONCLICK code via events OnChange() and OnHeadClick() fails.
Specifically, the BROWSE/GRID OnChange() and OnHeadClick() do NOT fire.
Question:
How can this Header "CONTEXT MENU" Right-Click be programmatically be intercepted and then stopped?
Thank you for your suggestions.
1) A RIGHT-Click
2) Brings up a CONTEXT MENU
3) In a BROWSE/GRID Header
What:
In the above a CONTEXT MENU appears in/above the Header row even though NO DATA ROW is, in fact, selected by the click.
The VALUE property shows the last row selected. The VALUE does NOT indicate Header focus.
Problem:
Here interception and cancellation of the MENUITEM ONCLICK code via events OnChange() and OnHeadClick() fails.
Specifically, the BROWSE/GRID OnChange() and OnHeadClick() do NOT fire.
Question:
How can this Header "CONTEXT MENU" Right-Click be programmatically be intercepted and then stopped?
Thank you for your suggestions.