click

click(menuItem: MenuItem input);

The click event of the MenuItem class occurs when the user presses and then releases the left mouse button over a menu item or when the menu item is activated by a control sequence or an attached accelerator key. If the menu item has a submenu, logic in this event allows the contents of the submenu to be changed before it becomes visible.

An exception is raised if a MenuItem method is invoked from a server method.

Typically, you attach a click event to a menu to carry out commands and command-like actions.

The following is an example of the event definition.

menuEmpList_click(menuItem: MenuItem) updating;
vars
    form : ListEmp;
begin
    create form;
    list.show;
end;