Danny, here is how you do it.
Regards,
Eric Hansen


use Win32::GUI;

$W = new GUI::Window(
    -name => "Window",
    -text => "Win32::GUI TEST - ListView",
    -height => 300,
    -width => 300,
    -left => 100, 
    -top => 100,
);

$B1 = new Win32::GUI::Bitmap("node.bmp");
$B2 = new Win32::GUI::Bitmap("node_sel.bmp");
$IL = new Win32::GUI::ImageList(16, 16, 0, 2, 10);
$IL->Add($B1, 0);
$IL->Add($B2, 0);

$LV = new GUI::ListView(
         $W,
         -name => "ListView",
         -left => 10,
         -top => 10,
         -width => 280,
         -height => 80,
);

$LV->SetImageList($IL,1);
$LV->InsertItem(-item => 0, -text => "pizza", image => 0,);
$LV->View(1);  # show details




-----Original Message-----
From:   Danny Hoffman [SMTP:[EMAIL PROTECTED]]
Sent:   Tuesday, October 05, 1999 9:08 AM
To:     [EMAIL PROTECTED]
Subject:        Re: [perl-win32-gui] Listview images

Aldo Calpini wrote:

> Danny, please post some code.
> also take a look at listview.pl in the samples directory,
> it's working this way.

Here is my code.
What i want is to place an image in front of "file name" .


--
Danny Hoffman, Elements Internet Producties, http://www.elements.nl

 << File: listview.gpl >> 

Reply via email to