Page 1 of 1
Change MenuItems on the fly
Posted:
Mon Jan 09, 2012 10:16 pm
by reinaldocrespo
Hi.
I'd like to change the menu items on menu option n (say 5) via code. Can someone help?
Thank you,
Reinaldo.
Re: Change MenuItems on the fly
Posted:
Mon Jan 09, 2012 11:11 pm
by Enrico Maria Giordano
Try this:
- Code: Select all Expand view
oMenu:aItems[ 5 ]:SetPrompt( "Changed" )
EMG
Re: Change MenuItems on the fly
Posted:
Tue Jan 10, 2012 12:54 am
by reinaldocrespo
Enrico;
Hi.
How about removing all submenu options from oMenu:aItems[5] and then adding 3 new submenu items with actions to oMenu:aItems[ 5 ]?
Thank you,
Reinaldo.
Re: Change MenuItems on the fly
Posted:
Tue Jan 10, 2012 10:08 am
by Enrico Maria Giordano
Please look inside mru.prg.
EMG
Re: Change MenuItems on the fly
Posted:
Tue Jan 10, 2012 9:15 pm
by reinaldocrespo
Yes!
Thank you Enrico.
Reinaldo.