Re: Mibtree scripts question

Juergen Schoenwaelder (schoenw@cs.utwente.nl)
Thu, 7 Nov 1996 11:31:12 +0100

Damien WETZEL <frs0139@trt-philips.fr> said:

Damien> I m customizing the mibtree script with scotty 2.0.1
Damien> I m trying to bind some keys to the mib oids in the Drawtree proc :

Damien> $c bind $xids($xindex) <Button-1> "set_it %W $oid"
Damien> $c bind $xids($xindex) <Control-1> "show_it %W $oid"
Damien> $c bind $xids($xindex) <Button-3> "PopUp %W %X %Y $oid"
Damien> --> those ones work (all binding related to mouse)

Damien> $c bind $xids($xindex) <KeyPress> "dosomething"
Damien> this one (as all related to keybord keys) doesn't work
Damien> Does any body have any clues ?

Try the following:

$c bind $xids($xindex) <Any-KeyPress> "dosomething"

This is actually a Tk question and not specific to the scotty package.

Juergen

--
Juergen Schoenwaelder schoenw@cs.utwente.nl http://www.cs.utwente.nl/~schoenw
Computer Science Department, University of Twente,   (Fax: +31-53-489-3247)
P.O. Box 217, NL-7500 AE Enschede, The Netherlands.  (Tel. +31-53-489-3678)