CMenu( HCtrl, MenuName = "", Sub = "" )
Sets context menu for the control.
HCtrl | Handle of the control. |
MenuName | Name of the menu, optional. |
Sub | Subroutine to be launched, optional. |
CMenu | Holds the menu definitions. |
Parameters and variables of this function are equal to those required by Showmenu. The menu for the control is launched as:
ShowMenu(CMenu, %Hwnd%_menuName, %Hwnd%_sub)
Show menu from the text string.
ShowMenu( MenuDef, MenuName = "", Sub = "", Sep = "`n", r = 0 )