Roode, Eric wrote:
I am trying to figure out how to work with a multiple-column listbox.
The doco clearly shows how to create the Listbox as multi-colum:

    -multicolumn => 0/1 (default 0)

but it says nothing about how to add/insert multicolumn items.

No different to adding non-multicolumn items.

Regards,
Rob.

#!perl -w
use strict;
use warnings;

use Win32::GUI();

my $mw = Win32::GUI::Window->new(
    -title => "Multi-column ListBox",
    -size  => [400,300],
);

$mw->AddListbox(
    -name   => "LB",
    -width  => $mw->ScaleWidth(),
    -height => $mw->ScaleHeight(),
    -vscroll => 1,
    -multicolumn => 1,
);

$mw->LB->Add($_) for 1..100;

$mw->Show();
Win32::GUI::Dialog();
exit(0);
__END__

Reply via email to