Wow thanks for the tip-I will try it once I get a chance.
By the way, how come I did not see this method in the listview document-not
even in the
method.html?--is there an updated archive of win32::gui somewhere?
Anyways, thanks again.
--- [EMAIL PROTECTED] wrote:
> If you name your listview like
>
> #----------
> $window->AddListView
> #----------
> (
> -name => "DataView",
> -top => 160,
> -left => 0,
> -width => 600,
> -height => 200,
> -addstyle => WS_CHILD |
> WS_VISIBLE |
> ES_AUTOVSCROLL |
> WS_VSCROLL |
> 1,
> -checkboxes => 0,
> -fullrowselect => 1,
> -gridlines => 1,
> -multisel => 2,
> -view => 1,
> );
>
> Then you can get those selected items ...
>
> @items = $window->DataView->SelectedItems();
>
> then you can do something like
>
> foreach ( @items )
> {
> # do something with each item
> }
>
> Jeff Colwell
> No electrons were harmed in making this e-mail message.
>
>
> -----Original Message-----
> From: Alex Lee [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 23, 2002 2:55 PM
> To: [email protected]
> Subject: [perl-win32-gui-users] List View-getting multiple selection indexes
>
>
> Hi, all:
>
> I was wondering if there is a way to get all of the indexes that a user
> selects in a listview (not with check boxex), but just simply highlighting
> the rows. I tried using
> SelectCount() but that only returns the number of item selected and not the
> actual indexes of each of the selected items.
>
> for example if I have a listView of:
>
> pear
> apple
> peach
> nuts
>
> and if the user highlights pear and apple with their mouse,I would like
> retrieve the indexes of 0 and 1, thereby allowing me to know that apple and
> peach was selected.
>
>
> Thanks in advance!
> Alex Lee
>
>
>
> =====
> **************************
> ***** END OF MESSAGE *****
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/
>
> _______________________________________________
> Perl-Win32-GUI-Users mailing list [email protected]
> https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
=====
**************************
***** END OF MESSAGE *****
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/