|
From: Mattia B. <mb...@ds...> - 2002-05-23 19:33:44
|
> what about if you are not responding to an event, so you do not have
> $event->GetIndex() to use?
> how would you
> (a) get the index of the currently selected item?
my $item = $this->{LISTCTRL}->GetNextItem(-1, wxLIST_NEXT_ALL,
wxLIST_STATE_SELECTED);
> and
> (b) the same for a multi-selection listctrl?
repeat the above replacing the "-1" with the $item you just obtained.
HTH
Mattia
|