On Tuesday, May 15, 2018 at 2:35:46 AM UTC-7, Zoltan Kocsi wrote:
> This issue is similar to the thread
> "Configure background of ttk::combobox"
> about a month ago.
>
> First of all, is there some actual, detailed documentation (apart
> from the ttk source code) about the whole ttk:: internals, how the
> widgets are built, how the config of elements works and so on and so
> forth? The man page for ttk::style is not overly helpful. It's probably
> a very good reminder for the people who wrote ttk but I doubt that
> garden variety laymen like me can grasp the intricacies of ttk from
> that (or from the Tcl book, for that matter). Pointers to any such
> documentation would be most welcome.
Not really. Run `ttk::style layout` on various widgets.
and study the the layout of some of the ttk widget styles.
Different themes may have different layouts.
And the various themes set the colors in their own fashion.
I created this wiki page detailing how to change
the colors:
http://wiki.tcl.tk/37973
The ttk::progressbar section has an example of changing the elements on
windows (from
http://wiki.tcl.tk/20059).
I also created this page:
http://wiki.tcl.tk/54685 showing how to add
an additional element.
The manual pages have had an update to include some basic documentation
on what style configuration options are available. If you can find the
right person to push, they could update the online manual pages to the
new version of manual pages.
> Then also, is there a reason why the combobox behaves the way it does?
> Tcl/Tk 8.6 on Linux:
>
> - If the combobox content is chosen from the list, it will also be
> selected (i.e. have a highlighted background). Why?
Do not know.
> - The combobox has a config, -foreground which seems to set the colour
> of the text. It also has a -background, which probably sets
> something, but no matter what I did, I could not make any part of the
> widget show the colour set by that option.
There is very little -background that is visible.
You may see the change behind the arrow buttons.
You can change the -fieldbackground. Some of the themes have a graphical
-fieldbackground and nothing will happen.
When using Mac OS X, -background sets the -fieldbackground (bug).