Hi,
Anyone know how I can scroll horizontally (and edit) long text in a editable
ComboBox? Thanks. Lojzo.
This is my little example:
use Win32::GUI;
my $W = new Win32::GUI::DialogBox(
-left => 200,
-top => 100,
-width => 300,
-height => 200,
-name => "W",
-text => "Test"
);
$W->AddCombobox(
-name => "C",
-style => WS_VISIBLE | 2 | WS_VSCROLL,
-tabstop => 1,
-left => 100,
-top => 50,
-width => 100,
-height => 100,
);
$W->AddButton(
-name => "OK",
-text => "OK",
-default => 1,
-tabstop => 1,
-ok => 1,
-left => 125,
-top => 150,
-width => 50,
-height => 20,
);
$W->C->Add("Short text", "Longer text: longer than ComboBox width");
$W->C->SetFocus();
$W->Show();
Win32::GUI::Dialog();
sub OK_Click {
-1;
}