https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • b

    bright-gpu-74537

    08/19/2022, 1:53 PM
    ill add the animation ones though... because they are useful, and i would hate to have to create that again 😄
  • f

    full-journalist-82607

    08/19/2022, 1:58 PM
    Interesting. I don't why I would have thought they had a simpler way to do it
  • b

    bright-gpu-74537

    08/19/2022, 1:59 PM
    i think with pretty much any "layout system" you are potentially going to have issues with things moving when you size them, it seems css's scale doesnt work that way (im assuming anyway)
  • f

    full-journalist-82607

    08/19/2022, 2:07 PM
    Indeed... Yeah, css is so weird
  • o

    orange-van-60470

    08/19/2022, 2:23 PM
    Ian have you flexbox control that can be powerful
  • b

    bright-gpu-74537

    08/19/2022, 2:24 PM
    nope, i guess the close thing i have to it (but its not really anything like it) is the continuous hbox
  • b

    bright-gpu-74537

    08/19/2022, 2:24 PM
    (but its really not anything like the flex box)
  • o

    orange-van-60470

    08/19/2022, 2:34 PM
    there is Cassowary, Kiwi, Jasper libraries, it should be feasible to put the constraints in XML. https://lib.haxe.org/p/jasper/ my understanding is that swift uses a cassowary style layout tool, probably it can be hooked on top of simpler layout editors
  • o

    orange-van-60470

    08/19/2022, 2:34 PM
    I am unsure which is best haxe version.
  • o

    orange-van-60470

    08/19/2022, 2:35 PM
    they can be rather tricky to use but quite powerful
  • p

    purple-businessperson-14467

    08/20/2022, 12:26 AM
    I am adding a row to a table. Is there a way to scrollto the newly added row? And related, is there a scrollto for the scrollview?
  • b

    bright-gpu-74537

    08/20/2022, 5:47 AM
    there is "ensureVisible" in scrollview that should work... though its overridden in listview, and not tableview, so might need a tweak - let me know if doesnt work and ill sort it
  • b

    bright-gpu-74537

    08/20/2022, 6:16 AM
    the parser issue is fixed now, haxeui will automatically wrap "" sections with CData, so " if (x < 0) {}" (which used to break the xml parser) will now turn into "<![CDATA[ if (x < 0) {}]]>>" (which is fine)
  • b

    bright-gpu-74537

    08/20/2022, 6:49 AM
    ive also added the animation examples: * http://haxeui.org/explorer/#miscellaneous/animation/animated_highlight * http://haxeui.org/explorer/#miscellaneous/animation/animated_dots
  • e

    elegant-twilight-61392

    08/20/2022, 7:33 AM
    dang i still need to get around to trying haxeui
  • b

    bright-gpu-74537

    08/20/2022, 7:35 AM
    🙂
  • b

    bright-gpu-74537

    08/20/2022, 7:44 AM
    i think this is probably my fav example / component: http://haxeui.org/explorer/#basic/canvas
  • b

    bright-gpu-74537

    08/20/2022, 7:44 AM
    i put off writing it for ages for some reason
  • b

    bright-gpu-74537

    08/20/2022, 10:25 AM
    added another example to the explorer: http://haxeui.org/explorer/#examples/todos - todomvc type thing... the idea here is to write as little code as possible, which so far has been pretty effective i think: haxe code: 84 lines (and a lot of that is just imports, functions, @bind, etc, etc) layout xml: 34 lines css: 95 lines i feel like its a pretty functional example for a verrrry small amount of code 🙂
  • t

    thousands-state-46635

    08/20/2022, 6:30 PM
    its def worth it
  • t

    thousands-state-46635

    08/20/2022, 6:30 PM
    Especially since its not hard to integrate with OpenFL and flixel, and wxWidgets
  • t

    thousands-state-46635

    08/20/2022, 6:31 PM
    Would it be possible to add the scroll bar to the dialog of the todos itself?
  • e

    elegant-twilight-61392

    08/20/2022, 6:31 PM
    my current issue is that im targeting all sys targets right now though
  • e

    elegant-twilight-61392

    08/20/2022, 6:31 PM
    i dont see any haxe-ui backends that work on java or python
  • e

    elegant-twilight-61392

    08/20/2022, 6:32 PM
    i could live without python having a gui, but if i do have a gui id want it to work on java
  • e

    elegant-twilight-61392

    08/20/2022, 6:33 PM
    actually, is haxe-ui thread-safe? 🤔
  • l

    loud-salesclerk-7438

    08/20/2022, 6:57 PM
    I took your todo sample and wrote some ui tests for it (see haxeium samples folder). Html5 works fine, C++ app fails some tests due to element visibility - on the other hand it demonstrates automatic-screenshots-when-error feature, so it kinda works...
  • l

    loud-salesclerk-7438

    08/20/2022, 6:57 PM
    I have found two things during testing: ButtonBar doesn't seem to react to hover or clicks, so no filtering. also all rows use the same id's for checkbox, textfield and button, not sure if that should be fixed
  • b

    bright-gpu-74537

    08/20/2022, 7:29 PM
    maybe i should restart haxeui-javafx 🙂
  • b

    bright-gpu-74537

    08/20/2022, 7:30 PM
    im not sure what you mean... if you add enough items, the whole todo container will scroll, if you wanted to just scroll the items in the todo, that would be possible too (by just wrapping it in a scrollview rather than the whole "app")
1...121812191220...1687Latest