Deutsch   English   Français   Italiano  
<vnq6en$15eqg$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Harald Oehlmann <wortkarg3@yahoo.com>
Newsgroups: comp.lang.tcl
Subject: Re: Treeview item indicators in image-based themes vs Tk 9
Date: Mon, 3 Feb 2025 11:40:23 +0100
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <vnq6en$15eqg$1@dont-email.me>
References: <vnq5d7$174h6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 03 Feb 2025 11:40:24 +0100 (CET)
Injection-Info: dont-email.me; posting-host="95080ef6f5d28b471e632d9395afa8cc";
	logging-data="1227600"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/f1QKPjtXWlFK88u0k5B4G"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:qovMjPhK9tB6SRRRkVP5JqgfzZg=
In-Reply-To: <vnq5d7$174h6$1@dont-email.me>
Content-Language: en-GB
Bytes: 2406

Am 03.02.2025 um 11:22 schrieb Eric Brunel:
> Hello all,
> 
> I've recently switched to tcl/tk 9.0 and I discovered what seems to be an
> issue with image-based themes having an image for the treeview item open/
> close indicators.
> 
> 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.
> 
> Any pointers would be greatly appreciated.
> 
> Thanks!
>   --
>   Eric

Thanks, Eric,
I lightly remeber some discussion on this by Csaba, when those images 
passed to svg format with Tk 9.
It would be worthwile to post this as tk bug, as the migration notes 
dont mention this:
https://core.tcl-lang.org/tk/wiki?name=Migrating+scripts+to+Tk+9&p

Thanks,
Harald