https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • hahaha i do this 😄
    a

    ambitious-knife-25690

    04/07/2023, 10:04 PM
    hahaha i do this 😄
  • how does one do a timer on hx widgets?
    a

    ambitious-knife-25690

    04/08/2023, 12:45 AM
    how does one do a timer on hx widgets?
  • I tried both a haxe timer and the haxeui timer and I couldn't get either to work
    a

    ambitious-knife-25690

    04/08/2023, 12:46 AM
    I tried both a haxe timer and the haxeui timer and I couldn't get either to work
  • (builder updated also - so your original repro is fine now)
    b

    bright-gpu-74537

    04/08/2023, 6:47 AM
    (builder updated also - so your original repro is fine now)
  • (something ive been meaning to do for a while)(
    b

    bright-gpu-74537

    04/08/2023, 7:05 AM
    (something ive been meaning to do for a while)(
  • anyone using 4.3 with haxeui? Anything i should know / worry about?
    b

    bright-gpu-74537

    04/08/2023, 7:20 AM
    anyone using 4.3 with haxeui? Anything i should know / worry about?
  • bonus tableview feature, you can now do this: http://haxeui.org/builder/?a5a5bc24
    b

    bright-gpu-74537

    04/08/2023, 7:50 AM
    bonus tableview feature, you can now do this: http://haxeui.org/builder/?a5a5bc24
  • b

    bright-gpu-74537

    04/08/2023, 7:50 AM

    https://cdn.discordapp.com/attachments/565569107701923852/1094167466810282044/image.pngâ–¾

  • (ie, address entire columns in styles)
    b

    bright-gpu-74537

    04/08/2023, 7:51 AM
    (ie, address entire columns in styles)
  • <@845321582770913291> - ive added a new sample to the builder about components events for listview (but really it applies to item renderers, so tableview, treeview etc): http://haxeui.org/explorer/#containers/list_views/component_events
    b

    bright-gpu-74537

    04/08/2023, 9:21 AM
    @helpful-boots-41914 - ive added a new sample to the builder about components events for listview (but really it applies to item renderers, so tableview, treeview etc): http://haxeui.org/explorer/#containers/list_views/component_events
  • at least its something more useful to refer to (given the conversation about there simply not really being a defacto example)
    b

    bright-gpu-74537

    04/08/2023, 9:22 AM
    at least its something more useful to refer to (given the conversation about there simply not really being a defacto example)
  • also added an example about tableview column styling: http://haxeui.org/explorer/#containers/table_views/column_styling
    b

    bright-gpu-74537

    04/08/2023, 9:37 AM
    also added an example about tableview column styling: http://haxeui.org/explorer/#containers/table_views/column_styling
  • nothing gets run, at least on wxwidgets backend
    a

    ambitious-knife-25690

    04/08/2023, 10:22 AM
    nothing gets run, at least on wxwidgets backend
  • ``` src/issues/drag_between_lists/MainView.hx:49: timer src/Main.hx:52: timer2 src/issues/drag_between_lists/MainView.hx:49: timer src/Main.hx:52: timer2 src/issues/drag_between_lists/MainView.hx:49: timer src/Main.hx:52: timer2 src/issues/drag_between_lists/MainView.hx:49: timer src/Main.hx:52: timer2 src/issues/drag_between_lists/MainView.hx:49: timer src/Main.hx:52: timer2 src/issues/drag_between_lists/MainView.hx:49: timer src/Main.hx:52: timer2 src/issues/drag_between_lists/MainView.hx:49: timer src/Main.hx:52: timer2 src/issues/drag_between_lists/MainView.hx:49: timer src/Main.hx:52: timer2 src/issues/drag_between_lists/MainView.hx:49: timer src/Main.hx:52: timer2 src/issues/drag_between_lists/MainView.hx:49: timer src/Main.hx:52: timer2 src/issues/drag_between_lists/MainView.hx:49: timer src/Main.hx:52: timer2 src/issues/drag_between_lists/MainView.hx:49: timer src/Main.hx:52: timer2 src/issues/drag_between_lists/MainView.hx:49: timer src/Main.hx:52: timer2 ```
    b

    bright-gpu-74537

    04/08/2023, 10:30 AM
    Copy code
    src/issues/drag_between_lists/MainView.hx:49: timer
    src/Main.hx:52: timer2
    src/issues/drag_between_lists/MainView.hx:49: timer
    src/Main.hx:52: timer2
    src/issues/drag_between_lists/MainView.hx:49: timer
    src/Main.hx:52: timer2
    src/issues/drag_between_lists/MainView.hx:49: timer
    src/Main.hx:52: timer2
    src/issues/drag_between_lists/MainView.hx:49: timer
    src/Main.hx:52: timer2
    src/issues/drag_between_lists/MainView.hx:49: timer
    src/Main.hx:52: timer2
    src/issues/drag_between_lists/MainView.hx:49: timer
    src/Main.hx:52: timer2
    src/issues/drag_between_lists/MainView.hx:49: timer
    src/Main.hx:52: timer2
    src/issues/drag_between_lists/MainView.hx:49: timer
    src/Main.hx:52: timer2
    src/issues/drag_between_lists/MainView.hx:49: timer
    src/Main.hx:52: timer2
    src/issues/drag_between_lists/MainView.hx:49: timer
    src/Main.hx:52: timer2
    src/issues/drag_between_lists/MainView.hx:49: timer
    src/Main.hx:52: timer2
    src/issues/drag_between_lists/MainView.hx:49: timer
    src/Main.hx:52: timer2
  • not sure i follow, its just traces, so they are in the terminal window of vscode
    b

    bright-gpu-74537

    04/08/2023, 10:33 AM
    not sure i follow, its just traces, so they are in the terminal window of vscode
  • do normal `trace`s work?
    b

    bright-gpu-74537

    04/08/2023, 10:33 AM
    do normal `trace`s work?
  • normal traces work with the above way, but, the app also doesn't seem to indicate that the timers are doing anything
    a

    ambitious-knife-25690

    04/08/2023, 10:36 AM
    normal traces work with the above way, but, the app also doesn't seem to indicate that the timers are doing anything
  • i have this in my settings.json:
    b

    bright-gpu-74537

    04/08/2023, 10:36 AM
    i have this in my settings.json:
  • i moved the same code to both kha and ceramic and the app works there
    a

    ambitious-knife-25690

    04/08/2023, 10:36 AM
    i moved the same code to both kha and ceramic and the app works there
  • ``` "haxe.configurations": [ {"label": "haxeui-hxwidgets", "args": ["hxwidgets.hxml", "-cmd", "cmd /c build\\hxwidgets\\Main.exe"]}, {"label": "haxeui-hxwidgets (debug)", "args": ["hxwidgets.hxml", "--debug", "-cmd", "cmd /c build\\hxwidgets\\Main-debug.exe"]}, ```
    b

    bright-gpu-74537

    04/08/2023, 10:36 AM
    Copy code
    "haxe.configurations": [
            {"label": "haxeui-hxwidgets", "args": ["hxwidgets.hxml", "-cmd", "cmd /c build\\hxwidgets\\Main.exe"]},
            {"label": "haxeui-hxwidgets (debug)", "args": ["hxwidgets.hxml", "--debug", "-cmd", "cmd /c build\\hxwidgets\\Main-debug.exe"]},
  • one thing i have just noticed is `Timer.delay(() -> trace('hey'), 20);` seems to behave weird.... it doest trace until i close the app
    b

    bright-gpu-74537

    04/08/2023, 10:38 AM
    one thing i have just noticed is
    Timer.delay(() -> trace('hey'), 20);
    seems to behave weird.... it doest trace until i close the app
  • oh, its because its using the haxe timer, not the haxeui one
    b

    bright-gpu-74537

    04/08/2023, 10:38 AM
    oh, its because its using the haxe timer, not the haxeui one
  • are you sure you arent doing the same?
    b

    bright-gpu-74537

    04/08/2023, 10:38 AM
    are you sure you arent doing the same?
  • ie, does this work for you:
    b

    bright-gpu-74537

    04/08/2023, 10:39 AM
    ie, does this work for you:
  • ```haxe var timer = null; timer = new haxe.ui.util.Timer(20, () -> { trace("timer2"); }); haxe.ui.util.Timer.delay(() -> trace('hey'), 20); ```
    b

    bright-gpu-74537

    04/08/2023, 10:39 AM
    Copy code
    haxe
                var timer = null;
                timer = new haxe.ui.util.Timer(20, () -> {
                    trace("timer2");
                });
                haxe.ui.util.Timer.delay(() -> trace('hey'), 20);
  • yeah using your config it works
    a

    ambitious-knife-25690

    04/08/2023, 10:40 AM
    yeah using your config it works
  • ok, so it just wasnt tracing or something?
    b

    bright-gpu-74537

    04/08/2023, 10:40 AM
    ok, so it just wasnt tracing or something?
  • oh wth there's some jank going on here
    a

    ambitious-knife-25690

    04/08/2023, 10:40 AM
    oh wth there's some jank going on here
  • the app behaves differently if i open it directly vs the config
    a

    ambitious-knife-25690

    04/08/2023, 10:40 AM
    the app behaves differently if i open it directly vs the config
  • b

    bright-gpu-74537

    04/08/2023, 10:41 AM

    https://cdn.discordapp.com/attachments/565569107701923852/1094210484703604776/image.pngâ–¾

1...162316241625...1687Latest