Hi, Im trying to create a menu for a small group of screens which is controlled by a menu definitions table. So basically i create a menu structure from the labels/exec/direcoties defined in that table.
It works fine for a single level, i.e. using hmenu, hsubmenu and hsubmenuitem handles to control the top level menu, submenu off that menu and items for the menus.
However, if i want to create another level of submenus and submenuitems (so i can have another submenu on a submenu) i would need to define another 2 handles for that submenu and its submenuitems.
Thats ok, but if i wanted to be dynamic and have further submenus later without changing code i dont want to have to create numbers of handles in the code, but create them at run time.
Is this possible, i.e. craete a variable and assign the handle name to the variable and create the handle name from value(handvariable)?
Hope this makes sense!
TIA
Ian
It works fine for a single level, i.e. using hmenu, hsubmenu and hsubmenuitem handles to control the top level menu, submenu off that menu and items for the menus.
However, if i want to create another level of submenus and submenuitems (so i can have another submenu on a submenu) i would need to define another 2 handles for that submenu and its submenuitems.
Thats ok, but if i wanted to be dynamic and have further submenus later without changing code i dont want to have to create numbers of handles in the code, but create them at run time.
Is this possible, i.e. craete a variable and assign the handle name to the variable and create the handle name from value(handvariable)?
Hope this makes sense!
TIA
Ian