Re: Treeview item indicators in image-based themes vs Tk 9

Liste des GroupesRevenir à cl tcl 
Sujet : Re: Treeview item indicators in image-based themes vs Tk 9
De : francois.vogel.fv.NOSPAM (at) *nospam* gmail.com (Francois Vogel)
Groupes : comp.lang.tcl
Date : 03. Feb 2025, 20:50:23
Autres entêtes
Organisation : Guest of ProXad - France
Message-ID : <67a11e00$0$424$426a74cc@news.free.fr>
References : 1
User-Agent : Mozilla Thunderbird
Le 03/02/2025 à 11:22, Eric Brunel a écrit :
In tcl/tk 8.6, the styling for these indicators are usually done via
something like this:
 ttk::style element create Treeitem.indicator \
               image [list $image_for_closed \
                   user1 $image_for_open \
                   user2 $image_for_no_children \
               ] ...
 But this doesn't seem to work in tk 9: now all items have an indicator
showing the image_for_closed whether they have children or not, and
whether the item is opened or not.
 I suspect a change in the names for the states "user1" and "user2" - which
were admittedly not very user-friendly - but I just can't find any
reference for these, and by what I should replace them in tk 9 if that's
indeed the problem.
I think [527cb3cd5d] could shed light on this:
     https://core.tcl-lang.org/tk/info/527cb3cd5d
Regards,
Francois

Date Sujet#  Auteur
3 Feb 25 * Treeview item indicators in image-based themes vs Tk 97Eric Brunel
3 Feb 25 +* Re: Treeview item indicators in image-based themes vs Tk 92Harald Oehlmann
3 Feb 25 i`- Re: Treeview item indicators in image-based themes vs Tk 91Eric Brunel
3 Feb 25 `* Re: Treeview item indicators in image-based themes vs Tk 94Francois Vogel
4 Feb 25  `* Re: Treeview item indicators in image-based themes vs Tk 93Eric Brunel
4 Feb 25   `* Re: Treeview item indicators in image-based themes vs Tk 92Harald Oehlmann
4 Feb 25    `- Re: Treeview item indicators in image-based themes vs Tk 91Paul Obermeier

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal