4 messages in org.openoffice.fr.progRe: [prog] probleme de selecteditems
FromSent OnAttachments
seba...@free.frFeb 17, 2004 5:58 am 
Bernard MarcellyFeb 17, 2004 6:58 am 
seba...@free.frFeb 17, 2004 7:27 am 
seba...@free.frFeb 17, 2004 7:54 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [prog] probleme de selecteditemsActions...
From:Bernard Marcelly (marc@club-internet.fr)
Date:Feb 17, 2004 6:58:48 am
List:org.openoffice.fr.prog

At 14:59 2004-02-17 +0100, seba@free.fr wrote:

Bonjour,

J'ai un problème un peu bizarre lorsque je veux récupérer le numero de l'item selectionné dans une listbox.

dans un formulaire: oListBox = ThisComponent.DrawPage.Forms.GetByName(form).GetByName(listBox) oListBox.SelectedItems(0) => cela me retourne bien le numero de l'item

dans un dialog oListBox = poDialog.GetControl(listBox) oListBox.SelectedItems(0) => cela me retourne la valeur de l'item

Dans les deux cas tu devrais obtenir le texte du premier item sélectionné. Evidemment si les items sont : 1, 2, 3... tu obtiens un numéro.

Bernard