in reply to Re^3: problem with Tk::JComboBox
in thread problem with Tk::JComboBox

how can i achive as you mentioned as bug.
even i won't use only one place, i will use dependent select combo's in differt screens.
Please suggest me.

Replies are listed 'Best First'.
Re^5: problem with Tk::JComboBox
by jethro (Monsignor) on Sep 27, 2008 at 16:05 UTC
    You mean the feature of connected boxes? I did say it is a feature, not a bug. And you can use it by creating an array and using a reference to it as a -choices parameter. For example:
    my @array= ('1', '2','123'); my $box1 = $Screen->JComboBox( ... , -choices= \@array ); my $box2 = $Screen->JComboBox( ... , -choices= \@array );

    As long as you use a reference to the same array, the boxes are in sync to the first box, the master. At least that's how I understood the documentation.