CombBox question

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
tasdvl9
Posts: 94
Joined: Fri Dec 06, 2013 3:55 am

CombBox question

Post by tasdvl9 » Fri May 02, 2014 7:37 pm

Hello,

I'm trying to keep the items in my comboBox from being erased when I use this line of code:

set the text of button "btnAddress" to myAddrBtnTxt

However, when I look at my ComboBox button I see the other selections are no longer in the drop down box.

My question is how do I set the ComboBox so all of the other items are still listed and not overwritten?

Thanks!

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: CombBox question

Post by magice » Fri May 02, 2014 8:03 pm

I think what you are looking for is the menuItem keyword.

example:

Code: Select all

select menuItem 3 of button "myComboBox"

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: CombBox question

Post by Klaus » Fri May 02, 2014 8:51 pm

I rather think that you mean "the label"! :D
...
set the label of btn "your combobox here..." to "New visible Label of button"
...
This willll only change the visible part (= the label) and not the complete content!

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: CombBox question

Post by magice » Fri May 02, 2014 9:13 pm

Oh yes, what Klaus said. :D
I made the assumption that you wanted the combo box to run whatever script is attached to that selection. Your line of code is more like what Klaus suggested, where you only change which selection is showing.

Post Reply