Page 1 of 1
call a menu from a menu
Posted: Tue Apr 12, 2011 9:53 am
by sailer
I am new to ProfoundUI programming. How can i call a menu from a menu?
I would like to create a menu which can include several submenues.
Re: call a menu from a menu
Posted: Tue Apr 12, 2011 10:01 am
by David
In Profound UI, you can create a menu using the menu widget.
The menu works using a few properties:
"choices" = a comma separated list of menu option descriptions.
"choice values" = an optional comma separated list of menu item values.
You can populate the above properties using either a hard-coded list, or by feeding the values in using field binding. You'd probably want to use field binding to create a dynamic menu.
You'll want to bind another field to the "menu response" property. When the user clicks on the menu, the "menu response" field will be populated with either the "choice value" (if this property was specified), or the "choice" text.
The program can then decide where to go from there. It could call another program, for example, or maybe it would load another list of menu items into the menu widget.