simonkrauter/NiGui

Right click on button

Kaz-Kawashima opened this issue · 2 comments

Thank you for providing such a wonderful library.

Can I add right click event on button?

I'm making mine sweeper for my hoby, and I'd like to add "Flag" function to right click.
image

I think this should work like this:

button.onMouseButtonDown = proc (event: MouseEvent) =
  if event.button == MouseButton_Right:
    echo "right click"

Thank you for quick reply!

I could implement it!
image