daniel.destro | 1 Oct 16:34
Picon
Favicon

Change Combobox selection

I have a combobox.

If I do this: 

 setInteger( myCombo, "selected", 1 );

It works fine and the Item located at index 1 is set.

I tried to set -1 to have no item selected, but it did not work.
Is there any way to do that?

tks again
Daniel

------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

 
Timothy Stack | 1 Oct 16:40
Picon
Favicon

Re: Change Combobox selection

> 
> I have a combobox.
> 
> If I do this: 
> 
>  setInteger( myCombo, "selected", 1 );
> 
> It works fine and the Item located at index 1 is set.
> 
> I tried to set -1 to have no item selected, but it did not work.
> Is there any way to do that?

Is the combobox editable?  In addition to setting the selection to -1, did 
you also try clearing the text value:

  setString(myCombo, "text", null);

> tks again
> Daniel

tim

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

 
(Continue reading)


Gmane