davies has asked for the wisdom of the Perl Monks concerning the following question:
But if the comment character on the "showPopup" row is removed, not only does the list not appear, but there appears to be nothing in the combobox. However, getItemCount returns the number I would expect. Actually, this isn't the problem I want solved. I came across this one while trying to cut the code down to demonstrate the actual problem, although I think the two are closely related. In the longer version of the code, the list appears, but is very narrow (5 units, I think), and nothing I have tried gets it to the width I get when simply clicking on the box to make it drop down. Regards, John Daviesuse strict; use warnings; use diagnostics; use Tk; use Tk::JComboBox; my $wMain = MainWindow->new; my $cboFile = $wMain->JComboBox() ->place(-x => 0, -y => 0); foreach (<*>) { $cboFile->addItem($_); } #$cboFile->showPopup; MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with Tk::JComboBox
by Khen1950fx (Canon) on Jan 31, 2010 at 01:10 UTC | |
by davies (Monsignor) on Jan 31, 2010 at 18:45 UTC | |
by davies (Monsignor) on Feb 13, 2010 at 14:20 UTC | |
|
Re: Problem with Tk::JComboBox
by zentara (Cardinal) on Jan 31, 2010 at 15:27 UTC |