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!
CombBox question
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: CombBox question
I think what you are looking for is the menuItem keyword.
example:
example:
Code: Select all
select menuItem 3 of button "myComboBox"
Re: CombBox question
I rather think that you mean "the label"!
...
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!

...
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!
Re: CombBox question
Oh yes, what Klaus said.
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.

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.