CREATES A SYSTEM OBJECT MAIN_MENU_POP AND ALLOCATES IT NUMBER N AS REFERENCE
ACTION
The command MAIN_MENU_POP N creates a system object MAIN_MENU_POP, and allocates it a number N. The number N will be used to designate the MAIN_MENU_POP.
The created MAIN_MENU_POP can then be used through the appropriated commands.
A MAIN_MENU_POP is used to design a menu system with its accompanying drop-down menus on a FORM. There is only one MAIN_MENU per FORM.
A MAIN_MENU_POP cannot generate an event. The events are attached to the SUB_MENU.
The MAIN_MENU_POP of a FORM is activated by a right click on this FORM.
Remark: by default, the MAIN_MENU_POP is created on the FORM number 0, but another FORM can be used. For that, create a FORM by FORM N, and send it all the commands by COMMAND_TARGET_IS N before creating the MAIN_MENU_POP.
SYNTAX:
MAIN_MENU_POP N
USE ERROR EXAMPLE
rem create a MAIN_MENU_POP with its SUB_MENU
main_menu_pop 1
sub_menu 2
parent 2,1
caption 2,"Sub_Menu"
caption 0,"clic droit pour visualiser le MAIN_MENU_POP"
MAIN_MENU_POP
MAIN_MENU_POP N
SEE ALSO
MAIN_MENU
SUB_MENU
PARENT
ON_CLICK