Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BWidget Tree Binding Help

Status
Not open for further replies.

Wiggis

Programmer
Jun 9, 2003
10
GB
Hi,

I need to bind key events to a tree widget such as <Key-Return> but i seem to be having no luck.

the standard:-
$tree bindText <Key-Return> "puts $d"
does not work,

Any ideas?

also how can i bind a mouse click onto the background of the tree.

cheers for any help,

Dave
 
I'm not familiar with the form you're calling standard. Is it peculiar to BWidgets? Anyway, the way I bind is:

bind <bound object> <Key-Return> {<your command>}

or

bind <bound object> <Return> {<your command>}


Bob Rashkin
rrashkin@csc.com
 
bind <widget> <key> {command} is for mormal tk widgets but the Tree widget does not have the bind command and therefore this method does not work.

BWidget Tree has two methods defined for binding events

$tree bindText
$tree bindImage

but these only seem to accept mouse button bindings
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top