Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Tk::Tree double click on +

by gri6507 (Deacon)
on Apr 29, 2004 at 17:53 UTC ( [id://349215]=note: print w/replies, xml ) Need Help??


in reply to Re: Tk::Tree double click on +
in thread Tk::Tree double click on +

Thank you! This is exactly the behavior I wanted. But I do have a question: where is method Double1() defined? It's not part of Tree or HList or Widget.

Also, a completely unrelated question, I can't seem to figure out how to unhighlight an entry in a tree! (in other words, user clicks on a leaf/branch in a tree, then user clicks elsewhere off the tree; i want to deselect the selected item)

Replies are listed 'Best First'.
Re: Re: Re: Tk::Tree double click on +
by eserte (Deacon) on Apr 30, 2004 at 12:18 UTC
    But I do have a question: where is method Double1() defined?

    You have to look into the source code for this one (either in Tk/HList.pm or Tk/Tree.pm).

    I can't seem to figure out how to unhighlight an entry in a tree

    To deselect an hlist or tree item programmatically, you have to use the selectionClear or selectionSet methods (documented in Tk::HList). This could be done in response to a FocusOut or Leave event.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://349215]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 23:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found