Further, concerning getting the text from a ListView cell:

Maybe add the GetString() method like available for Listboxes for
consistancy?

Example:

my($item,$subitem)=$LV->SelectedItem(); # cell selected
$text=$LV->GetString($item,$subitem);

Thanks,
Eric Hansen

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Eric C. Hansen
Sent: Tuesday, November 23, 1999 4:20 PM
To: [EMAIL PROTECTED]
Subject: RE: [perl-win32-gui] Win32::GUI Build 434


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();

Otherwise, one has to load all data in the ListView to an array or hash if
they later need to access the selected data.

Thanks,
Eric Hansen

-----Original Message-----
From: Eric C. Hansen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 23, 1999 4:06 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [perl-win32-gui] Win32::GUI Build 434


On November 2, 1999 Aldo Calpini wrote:

hello all,
this is version 0.0.434 of Win32::GUI.
in this version I've added the functionalities
for ListViews you've been asking for...

------------------------------------------
Aldo, I tried using the -gridlines => 1 property and I still don't see
gridlines in my ListView?  I also don't see full row select when I set
property -fullrowselect => 1.  I added these properties to my DBGRID.pl
application which shows rows and columns of data from a database table. I
hoped to be able to see gridlines separating each table row. I also hoped to
see a row fully selected when I clicked on it. But I still only see the item
highlighted and none of the subitems on a row, which makes it difficult to
tell which item is selected when I use the horizontal scroll bar and
navigate right in the ListView.  Can you help?

>From sample file listview.pl

$Window->AddListView(
    -name      => "ListView",
    -text      => "hello world!",
    -left      => 10,
    -top       => 10,
    -width     => 280,
    -height    => 180,
    -imagelist => $IL,
    -style     => WS_CHILD | WS_VISIBLE | 1,
    -fullrowselect => 1,
    -gridlines => 1,
    -checkboxes => 1,
    -hottrack   => 1,
);



Reply via email to