Page 1 of 1

Building Option Menu items on the fly

Posted: Tue Mar 11, 2014 8:04 pm
by thatkeith
This seems like something I really ought to know, but I just can't crack it: how can I (can I?) populate an Option Menu button with menu items by script?
I have a long list that's generated on the fly, and I want it to be presented in an Option Menu.

Re: Building Option Menu items on the fly

Posted: Tue Mar 11, 2014 9:07 pm
by Klaus
Hi Keith,

you want to "set the text of btn xyz" to your long CR delimited list :D
Don't forget to "escape" characters like / etc... if neccessary!


Best

Klaus

Re: Building Option Menu items on the fly

Posted: Tue Mar 11, 2014 9:47 pm
by thatkeith
Ahh! I was thinking along the lines of the menuItems, but of course that got me nowhere. Thanks. :)