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

    bright-gpu-74537

    10/11/2019, 6:44 PM
    cant remember the name
  • a

    ambitious-knife-25690

    10/11/2019, 6:44 PM
    Damn, this is pretty awesome
  • b

    bright-gpu-74537

    10/11/2019, 6:51 PM
    https://community.haxeui.org/t/beginnings-of-a-haxe-ide-written-in-haxeui/121
  • b

    bulky-insurance-39338

    10/11/2019, 8:02 PM
    Ian .. that's really impressive !!!
  • u

    user

    10/11/2019, 8:02 PM
    that's really cool
  • u

    user

    10/12/2019, 3:10 AM
    this is probably extremely stupid but
  • u

    user

    10/12/2019, 3:10 AM
    I have code like this:
  • u

    user

    10/12/2019, 3:11 AM
    Copy code
    haxe
    package;
    
    import haxe.ui.HaxeUIApp;
    import haxe.ui.components.Button;
    import haxe.ui.containers.VBox;
    
    class Main {
        public static function main() {
            //Toolkit.scale = 2.5;
            //Toolkit.theme = "native";
            var app = new HaxeUIApp();
            app.ready(function() {
                var main = new VBox();
    
                var button1 = new Button();
                button1.text = "Button 1";
                main.addComponent(button1);
    
                var button2 = new Button();
                button2.text = "Button 2";
                main.addComponent(button2);
                
                app.addComponent(main);
    
                app.start();
            });
        }
    }
  • u

    user

    10/12/2019, 3:11 AM
    and HXML like this:
  • u

    user

    10/12/2019, 3:11 AM
    Copy code
    -lib haxeui-core
    -lib haxeui-html5
    -cp src
    -main Main
    -js bin/script.js
  • u

    user

    10/12/2019, 3:11 AM
    and HTML like this:
  • u

    user

    10/12/2019, 3:11 AM
    Copy code
    html
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>Document</title>
    </head>
    <body>
        <script src="script.js"></script>
    </body>
    </html>
  • u

    user

    10/12/2019, 3:11 AM
    when I build and open up the html file, I get this error:
  • u

    user

    10/12/2019, 3:11 AM
    Copy code
    script.js:3282 Uncaught TypeError: Cannot read property 'insertRule' of undefined
        at haxe_ui_containers_VBox.haxe_ui_backend_ComponentImpl [as __class__] (script.js:3282)
        at haxe_ui_containers_VBox.haxe_ui_core_Component [as __class__] (script.js:3981)
        at haxe_ui_containers_VBox.haxe_ui_containers_Box [as __class__] (script.js:8071)
        at new haxe_ui_containers_VBox (script.js:16370)
        at script.js:256
        at window.document.body.onload (script.js:2027)
  • u

    user

    10/12/2019, 3:12 AM
    what am I doing wrong..?
  • u

    user

    10/12/2019, 3:12 AM
    any help would be appreciated D:
  • u

    user

    10/12/2019, 3:16 AM
    + I'm getting the same error when trying to compile and run https://github.com/haxeui/component-explorer
  • u

    user

    10/12/2019, 3:16 AM
    maybe something's wrong with my copy of haxeui-html5..?
  • u

    user

    10/12/2019, 3:20 AM
    I had haxeui-html5 installed via
    git clone
    and then `haxelib dev`; I tried using
    haxelib git
    , now I get this error when I try to compile:
    Error: Error: Library haxeui-html5 version dev is not installed
  • b

    bright-gpu-74537

    10/12/2019, 6:06 AM
    the fact you get:
  • b

    bright-gpu-74537

    10/12/2019, 6:06 AM
    Copy code
    script.js:3282 Uncaught TypeError: Cannot read property 'insertRule' of undefined
        at haxe_ui_containers_VBox.haxe_ui_backend_ComponentImpl [as __class__] (script.js:3282)
        at haxe_ui_containers_VBox.haxe_ui_core_Component [as __class__] (script.js:3981)
        at haxe_ui_containers_VBox.haxe_ui_containers_Box [as __class__] (script.js:8071)
        at new haxe_ui_containers_VBox (script.js:16370)
        at script.js:256
        at window.document.body.onload (script.js:2027)
  • b

    bright-gpu-74537

    10/12/2019, 6:07 AM
    indicates haxeui-html5 is "working", so it seems like a bug... it tries to insert some css into the page which presumably is a little brittle and error prone
  • b

    bright-gpu-74537

    10/12/2019, 6:07 AM
    leave it with me, ill check it out
  • b

    bright-gpu-74537

    10/12/2019, 6:34 AM
    OK @User - i can reproduce - fixing now (thanks for the find, haxeui-html5 was incorrectly expecting there to be at least one element in the host page)
  • b

    bright-gpu-74537

    10/12/2019, 6:49 AM
    (fixed in master)
  • u

    user

    10/12/2019, 12:52 PM
    Thanks for the super quick fix, I'll check it out when I get home today :D
  • b

    brave-kangaroo-30399

    10/12/2019, 2:10 PM
    Ok I updated my app and it’s fine now
  • u

    user

    10/13/2019, 12:51 AM
    just cloned haxelib-helper from github to test with, and I'm getting this error when tryna compile for hxwidgets :( https://pastebin.com/DxhGFm62
  • u

    user

    10/13/2019, 12:52 AM
    I have all the dependencies installed including wxwidgets (followed instructions in haxeui/hxWidgets with VS 2015), but the errors kinda look like something's missing..?
  • u

    user

    10/13/2019, 12:52 AM
    I would post additional info but I don't know what info is relevant D:
1...126127128...1687Latest