call a menu from a menu

Use this board for starting discussions, asking questions, and giving advice on RPG programming for the IBM i platform (and predecessors.)
sailer
New User
Posts: 1
Joined: Thu Apr 07, 2011 11:42 am
First Name: Anton
Last Name: Sailer
Company Name: Bettenring eG
Phone: +49 711 7095820
Address 1: Echterdinger Str. 115
City: Filderstadt
State / Province: Outside Canada/USA
Zip / Postal Code: 70794
Country: Germany
Contact:

call a menu from a menu

Post 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.
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: call a menu from a menu

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests