How to add items in Option Menu

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
shalu
Posts: 72
Joined: Fri Mar 20, 2015 1:05 pm

How to add items in Option Menu

Post by shalu » Thu Nov 05, 2015 3:45 am

Hi All,

How to add items in a "Option Menu" eg:If I have some items in option Menu and with help of one of the item I have open a folder and select a file, how I add the name of the selected file in option Menu. Is it possible. :oops: :roll:

Thanks
Shalu
--
Thanks
Shalu S

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: How to add items in Option Menu

Post by MaxV » Thu Nov 05, 2015 10:35 am

It's the text property.
Each line is an option.

Code: Select all

set the text of button "option menu" to ("option 1" & CR & "option 2" & CR & "Very long option 3")
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply