Sean,

Try this little program and then incorporate it into your own:

use Win32::GUI;

my $MainWindow = new Win32::GUI::Window(
 -name   => "FruitWindow",
 -top    => 200,
 -left   => 100,
 -width  => 300,
 -height => 200,
 -minsize=> [300,200],
 -title  => "Fruit Box",
);

my $FruitList = $MainWindow->AddListbox(
 -name   => "FruitListBox",
 -top    => 52,
 -left   => 98,
 -width  => 125,
 -height => 110,
);


$FruitList->InsertItem("Apple");
$FruitList->InsertItem("Banana");
$FruitList->InsertItem("Grapes");
$FruitList->InsertItem("Kiwi");
$FruitList->InsertItem("Lemon");
$FruitList->InsertItem("Strawberry");


$MainWindow->Show();
Win32::GUI::Dialog();


sub FruitListBox_DblClick {
   print "got double click\n";
}

sub FruitWindow_Terminate {
   exit(0);
}


Jonathan Southwick
Technical & Network Services
Allegheny College, Meadsville, PA
[EMAIL PROTECTED]

----- Original Message -----
From: "Sean Healy" <[EMAIL PROTECTED]>
To: <perl-win32-gui-users@lists.sourceforge.net>
Sent: Thursday, January 11, 2001 7:38 PM
Subject: [perl-win32-gui-users] double click in listbox


> I can't get my listbox to register a double click.  I looked this up on
the
> old archives, and found references to the problem, but no solution.  Has
> anyone managed to get this to work?
>
> I'm using 0.0502 on Win95.
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
> _______________________________________________
> Perl-Win32-GUI-Users mailing list
> Perl-Win32-GUI-Users@lists.sourceforge.net
> http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
>


Reply via email to