Hello,
I have a menu option control populated with 9 items. I'm trying to only have 7 options
visible when the user selects a certain setting in my application. When the user refreshes the
app I'd then like the 9 options listed again. Is there a way to hide and then make visible the options
in the option menu control?
Thanks!
Hiding menu options
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Hiding menu options
Hi tasdvl9,
since "menus" are just text (a CR delimited list), you can store one list with 7 and one with 9 lines (options)
in a custom property of the button or in (global) variables, and set the appropriate menus "on the fly"
...
global tVarWith9lines,tVarWith7lines
...
set the text of btn "your option menu button here" to tVarWith9lines
...
set the text of btn "your option menu button here" to tVarWith7lines
...
You get the picture
Best
Klaus
since "menus" are just text (a CR delimited list), you can store one list with 7 and one with 9 lines (options)
in a custom property of the button or in (global) variables, and set the appropriate menus "on the fly"
...
global tVarWith9lines,tVarWith7lines
...
set the text of btn "your option menu button here" to tVarWith9lines
...
set the text of btn "your option menu button here" to tVarWith7lines
...
You get the picture

Best
Klaus
Re: Hiding menu options
Thanks, Klaus!
Excellent suggestion
Excellent suggestion
