Deutsch   English   Français   Italiano  
<vnsnp6$1puc6$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: Tue, 4 Feb 2025 10:48:23 +0100
Organization: A noiseless patient Spider
Lines: 53
Message-ID: <vnsnp6$1puc6$1@dont-email.me>
References: <vnq5d7$174h6$1@dont-email.me>
 <67a11e00$0$424$426a74cc@news.free.fr> <vnsn79$1pqut$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 04 Feb 2025 10:48:22 +0100 (CET)
Injection-Info: dont-email.me; posting-host="b26cd776b6f06a02fae09c07f8d66324";
	logging-data="1898886"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/ZEVLBsNHBuZd0eZ94ie5O"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:92/WC9Hg1RAFx91BYOZJw2Pef1w=
In-Reply-To: <vnsn79$1pqut$1@dont-email.me>
Content-Language: en-GB
Bytes: 2998

Am 04.02.2025 um 10:38 schrieb Eric Brunel:
> On Mon, 3 Feb 2025 20:50:23 +0100, Francois Vogel wrote:
> 
>> 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
> 
> Thanks for that. I've seen the argument about not using internally states
> that are supposed to be user-defined, and I can understand that,
> especially considering this never seemed to be correctly documented.
> 
> Now no more being able to do in themes what was possible in tk 8.6 is a
> bit of a shame. Which brings the question: why have internal states at
> all? The states 'open', 'leaf', 'first' and 'last' are indeed very
> specific to some elements, but as long as they can be used in themes, it
> might be nice to actually have them named and usable...
> 
> Thanks again!
>   Eric

Eric,
I think, this should be solved.
Please discuss in the ticket.

We have a public Tk telco today 16:00 UTC on the TCL Jitsi.
Maybe, we may speak about this.


Take care,
Harald