Re: [racket-users] Adding right-click functionality in a list-box%

2017-02-23 Thread Matthew Flatt
You could get approximately the right behavior using `get-first-visible-item` and `number-of-visible-items` to compute the item under the mouse. I think we'd have to add new things to `list-box%` to get the right answer reliably, though. At Thu, 23 Feb 2017 12:59:59 +, Erich Rast wrote: >

[racket-users] Adding right-click functionality in a list-box%

2017-02-23 Thread Erich Rast
While I'm working on GUI issues another question came up. Is there a way to add right-click functionality to a list-box? I'd like the selection to jump to the respective row on a right-click (btw, right-clicking does change the selection when the list-box gets focus but not afterwards), and