Ken,
Had that problem too. First I had to disable the native bindings like
so:
bind .lb <1> { }
...and then:
bind .lb <1> [code $this onClick]
You need the blank space between the curly brackets.
A year ago I understood why, when Michael McLennan explained it to me...
however I cannot recall this moment of illumination... ;-)
Cheers
Rob
Ken Bowen wrote:
>
> What is the trick to making use of the various key bindings
> for listboxes?? I've experimented with both 8.0 and 8.31 on
> Windows, and 8.0 on Linux, to no avail. I've explored both
> simple code of my own as well as the listbox demos which are
> shipped with the distributions:
>
> According to the documentation, the following bindings are
> installed on listboxes by default.
>
> [5] If the Up or Down key is pressed, the location cursor (active element)
> moves up or down one element. If the selection mode is browse or extended
> then the new active element is also selected and all other elements are
> deselected. In extended mode the new active element becomes the selection
> anchor.
> [7] The Left and Right keys scroll the listbox view left and right by the
> width of the character 0. Control-Left and Control-Right scroll the
> listbox view left and right by the width of the window. Control-Prior
> and Control-Next also scroll left and right by the width of the window.
> [8] The Prior and Next keys scroll the listbox view up and down by one page
> (the height of the window).
> [9] The Home and End keys scroll the listbox horizontally to the left and
> right edges, respectively.
>
> However, none of these appear to work.
> I've also tried directly binding all keypresses on the
> listbox to ring the bell, but again nothing happens.
>
> What am I missing?
>
> || Ken Bowen Applied Logic Systems, Inc. PO Box 400175,
> ||==== Voice: +1 (617)497-0100 Cambridge
> || FAX: +1 (617)497-3963 MA 02140 USA
> Email: [EMAIL PROTECTED] WWW: http://www.als.com
>
> _______________________________________________
> vtcl-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/mailman/listinfo/vtcl-user
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/vtcl-user