in reply to Re: Value population based on selection
in thread Value population based on selection
Tk::JComboBox does the same thing but the option is called -textvariable. You can then just read $value when you detect that a selection has been made.my $value = ''; my $combo => $parent->BrowseEntry(-variable => \$value, ...);
That's the 'How to get the user selected value' bit. To populate another list based on this value, well there's more than one way - you can reconfigure the -choices option:
$combo->config(-choices => ['foo', 'bar', baz'...]);
Or there are object methods that can remove items from the selection list and add others - see the docs for the combobox class you are using.
|
|---|