Re: win32Lib ComboBox w32HChange
- Posted by Erik-Jan van Kampen <erikjanvankampen at gmail.com> Jan 13, 2007
- 580 views
cklester wrote: > > Erik-Jan van Kampen wrote: > > > procedure Window1_onActivate (integer self, integer event, sequence params) > > addItem(firstCombo,{"1","2","3"}) > > addItem(secondCombo,{"1","2","3"}) > > setText(firstCombo,"1") > > setText(secondCombo,"2") > > Instead of setText() use this: > > setIndex(firstCombo,1) > setIndex(secondCombo,2) > > I don't think the Combos were being initialized properly. I don't think > you can use setText() to initialize a combo... Regardless, it works with > the fix above. > > -=ck > "Programming in a state of Euphoria." > <a > href="http://www.cklester.com/euphoria/">http://www.cklester.com/euphoria/</a> Thanks ck! Your solution works for me. Would it also be possible to initialize the Combo with a value that is not in its list? Regards, Erik-Jan