From: MSEdit on
I am using ttk::treeview in a project and several users have commented
that the standard for open/close images is a small plus/minus sign in
a small box, I have looked through the documents but can not find an
option to change these two images from the two small triangles.

I found that the alt uses the Plus/Minus but did not find a way to
import this.

Is there some style magic to change these items ?

Martyn
From: Schelte Bron on
MSEdit wrote:
> I am using ttk::treeview in a project and several users have
> commented that the standard for open/close images is a small
> plus/minus sign in a small box, I have looked through the
> documents but can not find an option to change these two images
> from the two small triangles.
>
> I found that the alt uses the Plus/Minus but did not find a way
> to import this.
>
> Is there some style magic to change these items ?
>
Which theme are you using? Unless the theme already defined its own
treeitem indicator (like the default theme), you can import the one
from the alt theme using:
ttk::style element create Treeitem.indicator from alt


Schelte.

From: MSEdit on
On Feb 16, 10:26 pm, Schelte Bron <nos...(a)wanadoo.nl> wrote:
> MSEdit wrote:
> > I am using ttk::treeview in a project and several users have
> > commented that the standard for open/close images is a small
> > plus/minus sign in a small box, I have looked through the
> > documents but can not find an option to change these two images
> > from the two small triangles.
>
> > I found that the alt uses the Plus/Minus  but did not find a way
> > to import this.
>
> > Is there some style magic to change these items ?
>
> Which theme are you using? Unless the theme already defined its own  
> treeitem indicator (like the default theme), you can import the one
> from the alt theme using:
> ttk::style element create Treeitem.indicator from alt
>
> Schelte.

Thanks Schelte that was the magic I was looking for.

How did you find out about that command, I saw the element create
commands but not the 'from alt' part ?

Martyn
From: Schelte Bron on
MSEdit wrote:
> On Feb 16, 10:26 pm, Schelte Bron wrote:
>> MSEdit wrote:
[snip]
>> > Is there some style magic to change these items ?
>>
[snip]
>> ttk::style element create Treeitem.indicator from alt
>>
[snip]
> Thanks Schelte that was the magic I was looking for.
>
> How did you find out about that command, I saw the element create
> commands but not the 'from alt' part ?
>
I use this in the plastik theme (http://wiki.tcl.tk/24094). I don't
remember where I obtained that wisdom. Probably from talking to Joe
English on the chat (http://wiki.tcl.tk/1178).


Schelte