Výstup wxListBox jako integer

Jenda

Výstup wxListBox jako integer
« kdy: 29. 11. 2010, 21:10:01 »
Ahoj
pri ziskani vyberu wxlistboxu metodou

ListBox2-> GetSelections (a);

dostanu  wxArrayInt a;

a rad bych to pouzil jako integer bohuzel si stim nedokazu poradit

diky
« Poslední změna: 29. 11. 2010, 22:27:39 od Petr Krčmář »


46tegdfhf

Re: Výstup wxListBox jako integer
« Odpověď #1 kdy: 30. 11. 2010, 00:52:38 »
Podle
http://docs.wxwidgets.org/stable/wx_wxarray.html#wxarray
by melo stacit:
Kód: [Vybrat]
int i = a[0]nebo
Kód: [Vybrat]
int i = a.Item(0)

Jenda

Re: Výstup wxListBox jako integer
« Odpověď #2 kdy: 30. 11. 2010, 20:05:37 »
diky a jeste jsem prisel na metodu
Kód: [Vybrat]
int vyber=event.GetSelection()