style element create arrowCheckIcon image $tiles(open) \
-sticky w -border {0} \
-map [list \
{!active !background selected} $tiles(close) \
{ active !background !selected} $tiles(openDark) \
{ active !background selected} $tiles(closeDark) \
{!active background !selected} $tiles(openLight) \
{!active background selected} $tiles(closeLight)]
What has happened and how is it supposed to work in ttk 8.5?
/Mats
The image value now takes a list. Something like this:
style element create arrowCheckIcon image [list $tiles(open) \
{!active !background selected} $tiles(close) \
{ active !background !selected} $tiles(openDark) \
{ active !background selected} $tiles(closeDark) \
{!active background !selected} $tiles(openLight) \
{!active background selected} $tiles(closeLight) \
] -sticky w -border {0}
Schelte.
--
set Reply-To [string map {nospam schelte} $header(From)]
The "-map" part has been merged into the image specification,
so it works like other -image options.
--Joe English
Will this also be the case for ttk as a shared lib post version 0.8
and not only ttk in 8.5?
/Mats
Tile CVS HEAD (currently labeled "0.8.1") supports both forms
for transition purposes. The "-map" option will eventually
go away though.
In general: Tile 0.8.* attempts to be backward-compatible
with Tile 0.7.* and forward-compatible with (what's going into)
Tk 8.5, issuing runtime warnings for things that have changed.
No warning is issued for [style element create image ... -map],
though, I probably ought to rectify that...
--Joe English