v4169sgr has asked for the wisdom of the Perl Monks concerning the following question:
Greetings Monks,
I am using Strawbery Perl 5.24 on a Win 7 platform with Tkx to render a GUI.
I have a similar question to SOLVED - TK: How to change color of readonly BrowseEntry, except that I am using Tkx, not Tk. I am using new_ttk__combobox and setting state to read only so the user cannot edit the options.
Currently the disabled state is grey, but I would like it to be white, to match the dialog background, to give the user the impression that the widget as a whole is still 'active'. I see no method for doing this in the documentation for the combobox widget.
I have looked at BrowseEntry and JBrowseEntry in Tk. They are excellent and would more than fulfill the requirement, but I am not aware of a way of using them in Tkx after having re-read the Tkx manual and the available tcl namespace. I have also looked at tk___optionMenu but my use of it has so far thrown up odd errors to do with re-using the name of a parent widget.
Thanks in advance for your help!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Setting disabled background on Tkx combobox widget
by huck (Prior) on Mar 15, 2017 at 10:43 UTC | |
|
Re: Setting disabled background on Tkx combobox widget
by huck (Prior) on Mar 15, 2017 at 10:55 UTC | |
by v4169sgr (Sexton) on Apr 12, 2017 at 14:51 UTC |