From: JColwell@EQRWORLD.com - 2002-04-24 17:32:07
|
I saw this in a program by Jonathan Southwick. The program is gatorbase.pl. He used to have it on a web site, and you could get it by ftp, but I don't know if it still available. I could send it to you, but I don't know if that would violate his intellectual property rights -- I haven't seen him post to this list since last November. I don't know if he is still doing Win32-GUI stuff. BTW I answered a similar question back in February - you might have found the answer by looking in the archives. 8^) Jeff Colwell No electrons were harmed in making this e-mail message. -----Original Message----- From: Alex Lee [mailto:sim...@ya...] Sent: Tuesday, April 23, 2002 3:53 PM To: JColwell@EQRWORLD.com; per...@li... Subject: RE: [perl-win32-gui-users] List View-getting multiple selection i ndexes 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. --- JColwell@EQRWORLD.com 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:sim...@ya...] > Sent: Tuesday, April 23, 2002 2:55 PM > To: per...@li... > 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 > Per...@li... > 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/ |