use warnings; use strict; use Tk; use Tk::Optionbox; my $newTop = MainWindow->new; my $vsel; my @options = ( qw/ This That Amazon Th'other too many to fit on the screen/); my $selectVendor = $newTop->Optionbox(-text=>'Vendor', -command => \&sayit, -variable=> \$vsel, # -font=>$variableFont, -options=> [@options], -rows =>15, )->pack(-side=>'left'); $vsel = 'Amazon'; $selectVendor->set_option( $vsel, $vsel, $vsel ); MainLoop; sub sayit { print $_[0], "\n"; }