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

    ambitious-knife-25690

    01/25/2023, 12:22 PM
    you might need to set height/width to 100% on the parent container
  • c

    clever-yak-82528

    01/25/2023, 12:24 PM
    still doesn't have a gui in it
  • f

    full-journalist-82607

    01/25/2023, 12:26 PM
    what's the code xml ? Is it the example program ?
  • c

    clever-yak-82528

    01/25/2023, 12:26 PM
    Copy code
    xml
    <vbox width="100%" height="100%">
        <menubar id="menu" width="100%" height="100%">
            <menu text="File">
                <menuitem id="open" text="&Open" shortcutText="Ctrl-O" />
                <menuitem id="save" text="&Save" disabled="true" shortcutText="Ctrl+S" />
                <menuitem id="saveas" text="Save As..." disabled="true" />
                <menuseparator />
                <menuitem id="exit" text="&Exit" shortcutText="Ctrl+Q" />
            </menu>
        </menubar>
    </vbox>
  • c

    clever-yak-82528

    01/25/2023, 12:27 PM
    works fine in the builder
  • f

    full-journalist-82607

    01/25/2023, 12:29 PM
    it was wxwidgets ? Try puttig something else inside
    Copy code
    haxe
    <vbox>
        <menubar width="100%" id="menu" height="20" >
            <menu text="&File">
                <menuitem id="open_player" text="Open Player" shortcutText="Ctrl+P" />
                <menuitem id="open_editor" text="Open Editor" shortcutText="Ctrl+E" />
                <menuseparator />
                <menuitem id="quit" text="Exit" shortcutText="Ctrl+Q" />
            </menu>
        </menubar>
        <hbox id="buttonbar" horizontalAlign="center">
            <button id="open_player" text="Open Player" />
            <button id="open_editor" text="Open Editor" />
        </hbox>
        <vbox id="main_container" width="100%" height="100%"/>
    </vbox>
    Maybe put a vbox inside it ? Manubar work strangely in wxwidgets , it's not really part of the insde of the app
  • c

    clever-yak-82528

    01/25/2023, 12:29 PM
    oh interesting
  • c

    clever-yak-82528

    01/25/2023, 12:30 PM
    thanks
  • c

    clever-yak-82528

    01/25/2023, 12:32 PM
    still no menubar, hmm
  • f

    full-journalist-82607

    01/25/2023, 12:32 PM
    It's maybe because for example in macos, the menu bar can be totally separated of the app. ( maybe I'm telling bullshit , but's what I rember from macos)
  • f

    full-journalist-82607

    01/25/2023, 12:32 PM
    What are you using linux mac windows ?
  • c

    clever-yak-82528

    01/25/2023, 12:33 PM
    linux
  • f

    full-journalist-82607

    01/25/2023, 12:34 PM
    And if you're using linux, use latest git, I didn't work for me either at first, but there was a commit fixinf my problem
  • c

    clever-yak-82528

    01/25/2023, 12:34 PM
    hm ok
  • f

    full-journalist-82607

    01/25/2023, 12:34 PM
    must be more recent than 21 december https://github.com/haxeui/haxeui-hxwidgets/commit/2033b43953fdb9d9679ae8888e6e11e6c596fcbb
  • f

    full-journalist-82607

    01/25/2023, 12:41 PM
    Cool! Now I just rename the id afterwards and I can have my asterix 🙂 ( BTW , does it bother just me that * means required in forms, but optional in regex ? 🤔 )
  • b

    billowy-waiter-28954

    01/25/2023, 12:52 PM
    Very cool! Can't wait to see how it goes 😄
  • c

    clever-yak-82528

    01/25/2023, 1:01 PM
    so it seems to me that the build process for haxeui involves building everything and then only linking what's needed
  • c

    clever-yak-82528

    01/25/2023, 1:01 PM
    would it be at all possible to only compile stuff that actually gets used?
  • b

    bright-gpu-74537

    01/25/2023, 1:33 PM
    currently for haxeui-hxwidgets no - at the moment the problem is the native behaviour mapping, it cant be sure what you have or havent used (yet)
  • b

    bright-gpu-74537

    01/25/2023, 1:34 PM
    (also, runtime / dynamic ui's - but i guess most people arent using that)
  • b

    bright-gpu-74537

    01/25/2023, 1:34 PM
    whats the concern? Compile times? .exe file size?
  • c

    clever-yak-82528

    01/25/2023, 1:38 PM
    compile time
  • b

    bright-gpu-74537

    01/25/2023, 1:38 PM
    hxcpp cache will help you here 😉
  • b

    bright-gpu-74537

    01/25/2023, 1:39 PM
    in
    %USERPROFILE%/.hxcpp_config.xml
    add something like:
  • b

    bright-gpu-74537

    01/25/2023, 1:40 PM
    Copy code
    xml
    <xml>
    
      <!-- This section is parses at the beginning of the build .... -->
      <section id="vars">
    
         <set name="HXCPP_COMPILE_CACHE"  value="C:/SDK/hxcpp/cache" />
         <set name="HXCPP_CACHE_MB"  value="20480" />
    ...
  • a

    ambitious-knife-25690

    01/25/2023, 1:50 PM
    Been doing some of the smaller polish things yesterday
  • a

    ambitious-knife-25690

    01/25/2023, 1:51 PM
    does the colours look right now?
  • a

    ambitious-knife-25690

    01/25/2023, 1:51 PM
    the gradient on the components is what i'm not 100% on just yet
  • a

    ambitious-knife-25690

    01/25/2023, 1:51 PM
    i'm not sure if they look slightly different per target
1...140614071408...1687Latest