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

    bright-gpu-74537

    12/23/2022, 2:44 PM
    yeah, its weird though, as, for sure this was all working a while ago (granted, i cant remember how long ago though)
  • f

    full-journalist-82607

    12/23/2022, 2:48 PM
    Yeah obviously, when you first coded it, it mus have worked. Would it help you if I find when it stopped working ?
  • b

    bright-gpu-74537

    12/23/2022, 2:49 PM
    ok, so the crash on the dialog button was about the new way im handing native configs... thats fixed now... now just the weird size thing
  • b

    bright-gpu-74537

    12/23/2022, 2:49 PM
    naw, dont worry about, almost there now... thanks though 🙂
  • b

    bright-gpu-74537

    12/23/2022, 2:57 PM
    alright... lemme know if that works better
  • f

    full-journalist-82607

    12/23/2022, 2:59 PM
    Ok, btw, there 's another regression, there was commit in november which made ".stylenames" not work anymore, now it is always null ( for all platforms)
  • f

    full-journalist-82607

    12/23/2022, 3:04 PM
    It doesn't crash anymore. But there is something weird. One moment
  • b

    bright-gpu-74537

    12/23/2022, 3:05 PM
    can you elaborate on what you mean?
  • f

    full-journalist-82607

    12/23/2022, 3:05 PM
    if I do trace(button.stylenames) it traces null instead of .html5 .button etc ...
  • f

    full-journalist-82607

    12/23/2022, 3:07 PM
    In my app, the button appears at the top instead of the bottom in the dialog
  • f

    full-journalist-82607

    12/23/2022, 3:10 PM
    I'll try to make a minimal case
  • f

    full-journalist-82607

    12/23/2022, 3:16 PM
    Copy code
    haxe         var dialog = new haxe.ui.containers.dialogs.Dialog();
    
            var vbox = new VBox();
            dialog.addComponent(vbox);
            var label = new Label();
            vbox.addComponent(label);
            label.text ="Trt pip   zab bla bla bla";
            dialog.buttons= "MyButton";
            dialog.width =400;
            dialog.showDialog();
    The first image in html5, the second haxeui
  • f

    full-journalist-82607

    12/23/2022, 3:22 PM
    it's the commit setting .styleName should invalidate the entire component recursively from November the 14th
  • b

    bright-gpu-74537

    12/23/2022, 3:36 PM
    hmmmm, can you trace out the
    dialog.classes
    ?
  • f

    full-journalist-82607

    12/23/2022, 3:39 PM
    Yes indeed . ( Why thought ? it's a private var, isn't it ?)
  • b

    bright-gpu-74537

    12/23/2022, 3:40 PM
    not sure, maybe
  • b

    bright-gpu-74537

    12/23/2022, 3:40 PM
    there is a "special" style (dialog-custom-footer)... just want to see if its there
  • b

    bright-gpu-74537

    12/23/2022, 3:40 PM
    i think its only for windows, but just want to see what yours shows
  • f

    full-journalist-82607

    12/23/2022, 3:40 PM
    [platform-linux,hxwidgets,dialog,dialogbase,dialog-base,component,:native]
  • b

    bright-gpu-74537

    12/23/2022, 3:43 PM
    ok, what if you add
    styleName="custom-dialog-footer"
    to your xml
  • f

    full-journalist-82607

    12/23/2022, 3:45 PM
    Ho, it seems to to work 🙂
  • b

    bright-gpu-74537

    12/23/2022, 3:45 PM
    can i see?
  • b

    bright-gpu-74537

    12/23/2022, 3:46 PM
    also, you shouldnt need it... i think it was to work around windows dialog footers looking shitty
  • b

    bright-gpu-74537

    12/23/2022, 3:46 PM
    ill have a play in a bit and see if its the same for me without it
  • f

    full-journalist-82607

    12/23/2022, 3:49 PM
    Thanks for everything 😄 and sorry for sending you so many bugs these last few days ^ ^
  • b

    bright-gpu-74537

    12/23/2022, 3:50 PM
    no no, its good... ive clearly not been testing native as much as i should have been, so its good to catch these
  • f

    full-journalist-82607

    12/23/2022, 3:53 PM
    Yeah but I still feel guilty lol . You solve them so fast, I feel like I'm destroying your family life haha. I won't post on Christmay day 😛
  • b

    bright-gpu-74537

    12/23/2022, 4:11 PM
    well, tbh, id rather know about the bugs... especially when these are things that were previously working
  • f

    full-journalist-82607

    12/23/2022, 4:17 PM
    Yeah I understand. So .... onDialogClosed don't really work. Saying this I don't know if it was previously working work or not. I've kind of explored this one, I did a handler to dispatch a dialog closed event when you have wx_CLOSE_WINDOW event but it only works when clicking to close the windows, it doesn't work when you click on a button which closes the window.
  • b

    bright-gpu-74537

    12/23/2022, 4:19 PM
    this works for me:
1...135013511352...1687Latest