Re: missing setSelectedItem() method in XComboBox interface
Gerardo Gómez <[email protected]> Sat, 15 Oct 2011 12:14:08 -0500
| Newsgroups | gmane.comp.openoffice.devel.api |
|---|---|
| Message-ID | <CADBfh8QhLNpd3_jd9U37qHvxRW1B9EEwZ=dWua9RNVPggb4GEw@mail.gmail.com> |
--001636ef03786a37f504af598030 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Oh!, thank you a lot, i haven't seen that method. Now i know i don't need to create a bug ticket. On Sat, Oct 15, 2011 at 7:44 AM, Bernard Marcelly <[email protected] > wrote: > Hi Gerardo, > There are two ways to select an item of a ComboBox. > From the model of the ComboBox, set the Text property to the value that y= ou > want to select: > myControl.Text =3D "yellow" > > From the view of the control, use the setText() method: > myControlView.setText("yellow"**) > > Regards > Bernard > > > Message de Gerardo G=F3mez date 2011-10-15 00:54 : > > As far as i know, there isn't any setSelectedItem() method in XComboBox >> interface, i don't know if i need to make a new bug ticket for this one, >> if you >> know of an alternative to this please let me know >> > -- > ------------------------------**------------------------------**----- > To unsubscribe send email to dev-unsubscribe@api.**openoffice.org<dev-uns= [email protected]> > For additional commands send email to [email protected] > with Subject: help > --=20 ----------------------------------------------------------------- To unsubscribe send email to [email protected] For additional commands send email to [email protected] with Subject: help --001636ef03786a37f504af598030 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Oh!, thank you a lot, i haven't seen that method. Now i know i don'= t need to create a bug ticket.<br><br><div class=3D"gmail_quote">On Sat, Oc= t 15, 2011 at 7:44 AM, Bernard Marcelly <span dir=3D"ltr"><<a href=3D"ma= ilto:[email protected]">[email protected]</a>></span> wr= ote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex;">Hi Gerardo,<br> There are two ways to select an item of a ComboBox.<br> From the model of the ComboBox, set the Text property to the value that you= want to select:<br> =A0myControl.Text =3D "yellow"<br> <br> =46rom the view of the control, use the setText() method:<br> =A0myControlView.setText("yellow"<u></u>)<br> <br> Regards<br> =A0Bernard<br> <br> <br> Message de Gerardo G=F3mez =A0date 2011-10-15 00:54 :<div><div></div><div c= lass=3D"h5"><br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> As far as i know, there isn't any setSelectedItem() method in XComboBox= <br> interface, i don't know if i need to make a new bug ticket for this one= , if you<br> know of an alternative to this please let me know<br> </blockquote></div></div><font color=3D"#888888"> -- <br> ------------------------------<u></u>------------------------------<u></u>-= ----<br> To unsubscribe send email to <a href=3D"mailto:[email protected]= ce.org" target=3D"_blank">dev-unsubscribe@api.<u></u>openoffice.org</a><br> For additional commands send email to <a href=3D"mailto:[email protected]= e.org" target=3D"_blank">[email protected]</a><br> with Subject: help<br> </font></blockquote></div><br> --001636ef03786a37f504af598030--