SetPopupLocation - cCJContextMenu
Can be used to override the popup location of a context menu
Type: Procedure
Parameters
| Parameter | Type | Description |
|---|---|---|
| iY | Integer | Absolute row position |
| iX | Integer | Absolute column position |
Syntax
Procedure SetPopupLocation Integer iY Integer iX
Call Example
Send SetPopupLocation iY iX
Description
Normally, a context menu popup locates itself based on the mouse cursor position and it does this automatically. SetPopupLocation can be called immediately before you send Popup to the menu. You pass it an absolute Row (iY) and Column (iX) position, which will be used to locate this popup. This is a one time positioning. The next time Popup is called, the menu will be located automatically, unless you precede the call with another SetPopupLocation call.
This is used to locate menus that are not invoked as right-mouse-click context menus. Buttons can and do use this to locate a menu. See OnDropDown.