in reply to Re: Win32:GUI Combo Boxes
in thread Win32:GUI Combo Boxes
Now with code you supplied, now I get this error. "Can't call method "InsertItem", on a undefined value"use Win32::GUI(); $main = Win32::GUI::Window->new( -name => 'Main', -width => 500, -height => 500, -text => 'Auto Log', ); $main->AddCombobox( -name => "combo_box", -width => 120, -height => 110, #-tabstop=> 1, -pos => [5,160], -dropdownlist=> 0, ); my $combo_box = $main->AddComboBox( $combo_box->InsertItem( "One" ), $combo_box->InsertItem( "Two" ), $combo_box->InsertItem( "Buckle my shoe" ), ); $main->Show(); Win32::GUI::Dialog(); sub Main_Terminate { -1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Win32:GUI Combo Boxes
by Narveson (Chaplain) on Aug 31, 2009 at 17:55 UTC | |
|
Re^3: Win32:GUI Combo Boxes
by Karger78 (Beadle) on Aug 31, 2009 at 17:45 UTC |