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 +0000, Erich Rast wrote:
> 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 *then* display a popup-menu based on that
> selection. But the official API does not seem to offer any direct way
> of getting the row index below the current mouse cursor position.
> 
> Possible or not?
> 
> Best,
> 
> Erich
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to