cljfx

https://github.com/cljfx/cljfx
borkdude 2019-06-19T19:07:30.012800Z

https://gluonhq.com/java-on-ios-for-real/

vlaaad 2019-06-19T22:14:18.015400Z

@ambrosebs hi! I was on vacation, so sorry for late reply. I released 1.3.3 that supports observing tab reordering, looks like this:

(fx/on-fx-thread
  (fx/create-component
    {:fx/type :stage
     :showing true
     :scene {:fx/type :scene
             :root {:fx/type :tab-pane
                    :tab-drag-policy :reorder
                    :on-tabs-changed #(prn :on-tabs-changed %)
                    :tabs [{:fx/type :tab
                            :text "hello"}
                           {:fx/type :tab
                            :text "world"}]}}}))

2019-06-19T22:35:16.017900Z

@vlaaad great! it was actually a good thing you didn't jump to fix it, gave me a chance to dig deep enough to understand how to add such functionality myself. I have a little example app using tab panes that doesn't quite work yet, I'll try it out.

2019-06-19T22:57:36.019200Z

I'm still having trouble getting the context to agree with the TabPane. Here's an example https://github.com/frenchy64/cljfx/pull/2/files#diff-a255fbf50bd8928321a032f24fda85a1

2019-06-19T22:59:40.019600Z

it starts up an app that looks like the left image. you can click "Create tab..." a couple of times to create tabs, but it quickly gets out of order with the context (displayed as "Current tab order:").

2019-06-19T23:00:29.020700Z

like above, the TabPane says c4f is first, but the context says a83 is first.

2019-06-19T23:01:27.021200Z

pressing the "Rerender..." button makes the TabPane agree with the context tho