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

    bright-gpu-74537

    01/06/2023, 10:27 AM
    but then CI picks them and they are easy enough to change
  • b

    bright-gpu-74537

    01/06/2023, 10:28 AM
    ie, im not using some "killer feature" from haxe4
  • r

    refined-laptop-39041

    01/06/2023, 3:46 PM
    What is the purpose of compiling them to Haxe? Consoles?
  • p

    purple-businessperson-14467

    01/06/2023, 8:15 PM
    I have a tableview based on ArraySource.. I want to update 1 item in the arraysource and have the tableview display the change. Do I have to reset the datasource?
  • f

    full-journalist-82607

    01/06/2023, 8:17 PM
    I don't think so
  • f

    full-journalist-82607

    01/06/2023, 8:17 PM
    oh sorry misunderstood, I have to think
  • f

    full-journalist-82607

    01/06/2023, 8:19 PM
    If you use the update function, you won't need to
  • b

    bright-gpu-74537

    01/06/2023, 9:21 PM
    you can also use
    implements IDataItem
    in the class (if you have one) and then changing any field on that will update the datasource (and therefore the table)
  • b

    bright-gpu-74537

    01/06/2023, 9:30 PM
    eg: http://haxeui.org/builder/?51d52c05
  • p

    purple-businessperson-14467

    01/06/2023, 10:12 PM
    ok, thanks
  • p

    purple-businessperson-14467

    01/07/2023, 7:18 AM
    Here is a weird one. The dialog, called in mainview, isn't visible? Its behind the background color. http://haxeui.org/builder/?49ff3274
  • b

    bright-gpu-74537

    01/07/2023, 7:57 AM
    i think you are probably calling it a little too early
  • b

    bright-gpu-74537

    01/07/2023, 7:58 AM
    "new" gets called pretty instantly, so you are adding the dialog, which adds it to the screen, then, at a later point in time the main component initializes and add itself to the screen
  • b

    bright-gpu-74537

    01/07/2023, 7:58 AM
    you can see this is the case if you change the background opacity:
  • b

    bright-gpu-74537

    01/07/2023, 7:59 AM
    > Its behind the background color. oh, you already knew that
  • b

    bright-gpu-74537

    01/07/2023, 8:00 AM
    the solution is quite simple, just move your dialog create into an onReady handler which is called after the component is initialized, measured and added to the screen
  • b

    bright-gpu-74537

    01/07/2023, 8:00 AM
    Copy code
    haxe
    @:build(haxe.ui.ComponentBuilder.build("assets/main-view.xml"))
    class MainView extends VBox {
        public override function onReady() {
            super.onReady();
            Dialogs.messageBox('Going Inn:', 'No Error', 'error');
        }
    }
  • b

    bright-gpu-74537

    01/07/2023, 8:02 AM
    for clarity, something like this is happening:
    Copy code
    haxe
    var m = new MainView(); // <--- dialog is being created here and added to screen
    Screen.instance.addComponent(m);
  • p

    purple-businessperson-14467

    01/07/2023, 3:33 PM
    That was the answer. My actual issue was an alert for an http error but the request and alert was in the "new". Thank you
  • f

    full-journalist-82607

    01/07/2023, 9:18 PM
    Hmm, interesting, with the new htmlText, on hxWidgets, when label.htmlText = " {{GENERAL_FEEDBACK}} "; // here there's a segmentation fault label.htmlText = " General Feedback "; // this works But it seems that the exact same text is transmitted to ctrl.setLabelMarkup(normalizeText(_value)); when I trace the text in normalizeText. I even traced the charCode for each letter ! I don't see any difference
  • b

    bright-gpu-74537

    01/07/2023, 9:21 PM
    i wonder if {{}} means something to wx
  • b

    bright-gpu-74537

    01/07/2023, 9:21 PM
    oh, you are saying it already did the replacement
  • f

    full-journalist-82607

    01/07/2023, 9:21 PM
    But the weird thing is that it seems that {{}} isn't even transmitted to setLabelMarkup
  • b

    bright-gpu-74537

    01/07/2023, 9:22 PM
    gotcha
  • b

    bright-gpu-74537

    01/07/2023, 9:22 PM
    have you run as debug? Any stack trace?
  • f

    full-journalist-82607

    01/07/2023, 9:22 PM
    I thought it was a weird unseen character somewhere
  • f

    full-journalist-82607

    01/07/2023, 9:23 PM
    #0 0x00005555561e4f44 in hx::widgets::Control_obj::setLabelMarkup(String) ()
  • b

    bright-gpu-74537

    01/07/2023, 9:24 PM
    got a full(ish) test app, with all the resources and strings, etc? ... i can run this end
  • f

    full-journalist-82607

    01/07/2023, 9:24 PM
    Going to make a test app 🙂
  • f

    full-journalist-82607

    01/07/2023, 9:39 PM
    I'll send it to you tomorrow, it seems that there few more nuances ( setting the text after or before the creation of the component)
1...136613671368...1687Latest