cljfx

https://github.com/cljfx/cljfx
jlmr 2020-01-31T15:03:16.025600Z

@vlaaad I fixed the weird bug by implementing everything around it using pure event handlers. Still unsure what exactly went wrong, but it works now!

vlaaad 2020-01-31T15:11:42.026200Z

cool!

jlmr 2020-01-31T15:21:40.027300Z

Of course I have more questions 🙂. What is the best way to implement an menu or context-menu? I want to show a menu when the user double clicks a regular :pane

vlaaad 2020-01-31T15:22:46.028Z

so a custom context menu?

vlaaad 2020-01-31T15:25:48.028500Z

there are context menus available by default on controls, but pane isn't a control

vlaaad 2020-01-31T15:29:28.030200Z

you'll need to make a custom prop similar to ext.node/with-tooltip-props https://github.com/cljfx/cljfx/blob/master/src/cljfx/ext/node.clj but with .show and .hide that are on context menu (https://openjfx.io/javadoc/12/javafx.controls/javafx/scene/control/ContextMenu.html) instead of Tooltip/install and Tooltip/uninstall