
PapaGeek
User
Feb 7, 2014, 10:12 AM
Post #2 of 3
(21051 views)
|
Re: [PapaGeek] Win32::GUI File Type selection control?
[In reply to]
|
Can't Post
|
|
Hate to be the guy who answers his own questions, but here is the code snippet that I was able to get working:
$theListBox = $DataWindow->AddCombobox( -name => "TheListBox", -top => 30, -left => 15, -width => 200, -vscroll => 1, -dropdown => 1, ); $theListBox->InsertItem('0'); $theListBox->InsertItem('1'); $theListBox->InsertItem('2'); $theListBox->InsertItem('3'); $theListBox->InsertItem('4'); $theListBox->InsertItem('5'); $theListBox->InsertItem('6'); $theListBox->InsertItem('7'); $theListBox->SetCurSel(3); This code does not include any of the events to handle the returned values, still working on that, but it does display the drop down selection list properly and display the list with the desired item already selected. Note that the set current selection 3 selects the fourth item in the list, the selections are numbered from zero.
|