Subject: | configure -state=>disabled twice loses original foreground setting |
If you have a jcombobox widget and set its state to disabled twice, if
you then try to enable it, the color of the foreground text remains
disabled. This occurs because the DisableControls sub saves the
current setting of the colors without checking to see if the controls
are already disabled. When DisableControls is called the 2nd time,
the original saved settings are lost (they're replaced by the
current 'disabled' settings).
Env: Tk::JCombobox 1.10 (same code appears in 1.05 - oldest release I
could find on CPAN), ActiveState Perl 5.8.8.817, WinXP SP2.
I attached a file to reproduce and a patch with one way to fix.
Thanks.