Re: ttk::treeview - another question
- From: "Jeff Godfrey" <jeff_godfrey@xxxxxxxxx>
- Date: Fri, 22 Jun 2007 15:11:03 GMT
"Jeff Godfrey" <jeff_godfrey@xxxxxxxxx> wrote in message
news:MhPei.36$Zx4.18@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
"Joe English" <jenglish@xxxxxxxxxxxxx> wrote in message
news:f5fk680n9h@xxxxxxxxxxxxxxxxxxxx
Jeff Godfrey wrote:
Is it possible to "disable" an item in a treeview? I'm using a
treeview as the UI navigation for accessing categories of
application
options. If possible, I'd like to "disable" some of the categories
based on the application state. Looking at the docs, it seems
there's
currently no mechanism for this?
This sounds like a good use case for item tags.
Thanks Joe,
I'll give that a try and let you know how I get along.
Hi Joe,
I've done a bit of experimentation with this. While it may be
possible to get what I need via your suggestions, I think it's likely
more trouble than it's worth right now. I say that because the app in
question also uses "treectrl" (in other parts of the GUI), which
already has the abilities I need "out of the box". That said,
treectrl is *way* more widget than I need in this application, and I
had hoped to completely replace it with treeview. Unfortunately, I'm
kind of on a tight schedule (who isn't, huh?) and don't really have
time to coerce treeview into working as I need.
In my brief testing, it seems that one sticky spot for treeview in
this case will be getting the tree navigation right. That is, I'd
think the inactive nodes should be skipped during traversal. While
I'd assume that can be rewired in my code, I just don't have the time
to "get it right" right now.
As a future enhancement, it'd be great if each item supported a
"-state" option so they could be simply disabled and still do the
right thing(s)...
Thanks,
Jeff
.
- References:
- ttk::treeview - another question
- From: Jeff Godfrey
- Re: ttk::treeview - another question
- From: Joe English
- Re: ttk::treeview - another question
- From: Jeff Godfrey
- ttk::treeview - another question
- Prev by Date: Re: 0.7.8 ttk::treeview missing -xscrollcommand option?
- Next by Date: Re: How Tcl speaks for itself and how Tcl is not spoken for...
- Previous by thread: Re: ttk::treeview - another question
- Next by thread: 0.7.8 ttk::treeview missing -xscrollcommand option?
- Index(es):
Relevant Pages
|
Loading