in reply to Setting initial value of a Win32::GUI Combobox
Isn't it just calling ->Select?
$Schedtask_combo1 = $main->AddCombobox( -name => "blue", -left => 20, -top => 35, -width => 600, -height => 500, -style => WS_VSCROLL | WS_VISIBLE | 3 | WS_NOTIFY, ); $Schedtask_combo1->Add("Yellow", "Blue", "Green", "Red"); $Schedtask_combo1->Select($Schedtask_combo1->FindString("Blue")); # or: $Schedtask_combo1->Select(1);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Setting initial value of a Win32::GUI Combobox
by boat73 (Scribe) on Sep 16, 2004 at 12:12 UTC |