For key bindings to work in a listbox, the listbox must have the focus, eg.
you need to use the TAB key to tab to it until it is highlighted (usually
the border of the listbox changes slightly to indicate that the listbox has
the focus).

Then, when the listbox has the focus, the key based bindings will work.

You can add a binding for B1 that does: focus %W

That way, whenever you click on the listbox, it will have the focus.

CG



|---------+------------------------------------->
|         |           Chris Bennett             |
|         |           <[EMAIL PROTECTED]>   |
|         |           Sent by:                  |
|         |           [EMAIL PROTECTED]|
|         |           ceforge.net               |
|         |                                     |
|         |                                     |
|         |           03/31/2003 02:43 PM       |
|         |                                     |
|---------+------------------------------------->
  
>------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                          |
  |       To:       [EMAIL PROTECTED]                                                  
                            |
  |       cc:                                                                          
                                          |
  |       Subject:  [vtcl-user] key-* bindings don't seem to work                      
                                          |
  |                                                                                    
                                          |
  
>------------------------------------------------------------------------------------------------------------------------------|




Hello again,

On a WinME and Activestate TCL 8.3.4:
Can't seem to get the key-based bindings to work in the listbox part of a
scrollable listbox.  I can use the bindings editor to add the <key-delete>
tag (with, say, bgerror "Event %E" as the command) but nothing
happens.  Same behavior with simply <key>.  Mouse events such as <B1> or
<Entry>, etc work fine.  I've tried on both vTcl 1.5.2 and 1.6.0b1.

TIA,

-Chris.

~~~~~~~~~~~~~~
Chris Bennett
[EMAIL PROTECTED]



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user







-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user

Reply via email to