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

    bright-gpu-74537

    12/21/2022, 8:55 AM
    so without the null check, what did your code look like?
  • b

    bright-gpu-74537

    12/21/2022, 8:55 AM
    i mean, what was the call?
  • b

    bright-gpu-74537

    12/21/2022, 8:55 AM
    well, i guess ill see in the PR (?)... as long as it works, thats the important thing, this feels like an edge case of wx / your linux anyway
  • f

    full-journalist-82607

    12/21/2022, 8:56 AM
    _frame.thaw(); _frame.menuBar.show(); dispatch(new AppEvent(AppEvent.APP_STARTED));
  • b

    bright-gpu-74537

    12/21/2022, 8:56 AM
    but
    _frame.menuBar == null
    crashed it?? 🤔
  • b

    bright-gpu-74537

    12/21/2022, 8:57 AM
    ah, i think i know why... i think many .menuBar will never be null, but it will return a class that contains an invalid pointer
  • b

    bright-gpu-74537

    12/21/2022, 8:57 AM
    checking hxwidgets now
  • f

    full-journalist-82607

    12/21/2022, 8:58 AM
    yes, it seems it isn't null so it still does try to show it
    0x0000555555fa0f37 in hx::widgets::Window_obj::show(hx::Null<bool>) ()
  • b

    bright-gpu-74537

    12/21/2022, 8:58 AM
    yup... whoops: https://github.com/haxeui/hxWidgets/blob/master/src/hx/widgets/Frame.hx#L29-L34
  • b

    bright-gpu-74537

    12/21/2022, 8:58 AM
    will fix that now... good catch
  • f

    full-journalist-82607

    12/21/2022, 9:00 AM
    Cool ! I'll try again after your fix 🙂
  • b

    bright-gpu-74537

    12/21/2022, 9:07 AM
    alright, fixed in hxWidgets
  • f

    full-journalist-82607

    12/21/2022, 9:26 AM
    It works as it should ! 🙂 I just a did a PR https://github.com/haxeui/haxeui-hxwidgets/pull/33 . Sorry , I'm just seeing, the spacing is bad lol, I was so concentrated on doing a PR ( and finding again my token) , that I forgot to beautify the actual code lol. You can just type the code directly, it will takes less time. @bright-gpu-74537
  • b

    bright-gpu-74537

    12/21/2022, 9:27 AM
    thats fine... ill merge and reformat... thanks! 🙂
  • f

    full-journalist-82607

    12/21/2022, 9:28 AM
    You're welcome 🙂
  • r

    refined-greece-48002

    12/21/2022, 1:59 PM
    @bright-gpu-74537 Re: half-rendered file chooser dialog, definitely occurs when I just call the hl function directly as well
  • r

    refined-greece-48002

    12/21/2022, 1:59 PM
    also doesn't happen on my windows 10 dev machine; windows 11 issue I guess
  • b

    bright-gpu-74537

    12/21/2022, 2:00 PM
    i guess so
  • b

    bright-gpu-74537

    12/21/2022, 2:00 PM
    ¯\_(ツ)_/¯
  • f

    fierce-soccer-8550

    12/21/2022, 2:41 PM
    @refined-greece-48002 Are you using a release version or dev version of Win 11?
  • r

    refined-greece-48002

    12/21/2022, 3:07 PM
    Release @fierce-soccer-8550
  • f

    full-journalist-82607

    12/21/2022, 5:12 PM
    HI everyone again. I was wondering, if someone was using hxwidgets, does removing a tab view makes the app crash like for me ? ( I have a workaround, I just hide it for now)
  • b

    bright-gpu-74537

    12/21/2022, 5:15 PM
    ive removed tabs before, for sure... got a repro? Maybe some component on the tab is misbehaving?
  • f

    full-journalist-82607

    12/21/2022, 5:16 PM
    Yeah
    Copy code
    haxe
    import haxe.ui.containers.VBox;
    import haxe.ui.events.MouseEvent;
    
    
    @:xml('
    <vbox width="100%" height="100%">
    <button id="button" text="remove tab"/>
    <tabview id="tab" width="100%" height="100%">
    <vbox id="text_editor_tab" text ="TEXT_PREVIEW" width="100%" height="100%">
    </vbox>
    </tabview>
    </vbox>')
    class A003 extends VBox {
    
        @:bind(button, MouseEvent.CLICK)
        private function removeTab(e) {
            removeComponent(tab);
        }
    
    }
  • f

    full-journalist-82607

    12/21/2022, 5:18 PM
    ( posted an issue here https://github.com/haxeui/haxeui-hxwidgets/issues/34 )
  • b

    bright-gpu-74537

    12/21/2022, 5:18 PM
    oh, there are no components there to misbehave
  • f

    full-journalist-82607

    12/21/2022, 5:21 PM
    I'm wondering if it's a wx bug , but now that I have a working wxwidgets, I don't want to try to install other versions ^^
  • b

    bright-gpu-74537

    12/21/2022, 5:22 PM
    works this end
  • b

    bright-gpu-74537

    12/21/2022, 5:22 PM
    what if you have more than one tab, is it fine then?
  • f

    full-journalist-82607

    12/21/2022, 5:23 PM
    No, I've just simplified the minimal case. It doesn't work even with multiple tabs.
1...134713481349...1687Latest