Eric C. Hansen wrote:
> Also Aldo, concerning ListViews, do we have a method(s) for
> pulling the text from a selected ListView cell such as:
>
> $item=$LV->SelectedItem();
> $text=$LV->Item($item)->SubItem(3)->Text();
yes you have, the method is called ItemInfo(); actually,
it pulls the item -text, -state (selected or not) and
-image:
$item = ($LV->SelectedItems)[0];
%data = $LV->ItemInfo($item);
$text = $data{-text};
because ListViews by default have multiple selection
enabled, the first line gets only the first selected item
in the control. if you want to get'em all you can do:
foreach $item ($LV->SelectedItems) {
$data = $LV->ItemInfo($item);
$text = $data{-text};
}
and for subitems:
%data = $LV->ItemInfo($item, 3);
$text = $data{-text};
BTW, I like the syntax you provided! I'm going to implement
it in the next build... thanx ;-)
ciao,
Aldo
__END__