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

    clever-yak-82528

    01/29/2023, 12:43 AM
    fair
  • a

    ambitious-knife-25690

    01/29/2023, 12:44 AM
    and you give him an example of what you expect to happen with your use
  • c

    clever-yak-82528

    01/29/2023, 12:45 AM
  • c

    clever-yak-82528

    01/29/2023, 12:45 AM
    i expect clicking the "hi" button to switch the stack to a display with a button with the text "Export file" on it
  • b

    brave-kangaroo-30399

    01/29/2023, 1:09 AM
    Alright got things integrated and my completion is normal again
  • r

    refined-greece-48002

    01/29/2023, 7:13 AM
    This might be trying to eat my cake and have it too, but is there any way to get highlighting on xml that you've inlined with @:xml() in vscode?
  • f

    full-journalist-82607

    01/29/2023, 8:02 AM
    Context Menus work in wxwidgets 🙂
  • b

    billowy-waiter-28954

    01/29/2023, 9:09 AM
    Maybe you should use the « RESIZE » scaling setting in Project.hx
  • b

    billowy-waiter-28954

    01/29/2023, 9:09 AM
    Here it’s a bit weird that the ui elements get smaller or larger
  • b

    bright-gpu-74537

    01/29/2023, 10:14 AM
    i guess it might depend on the use case, i agree for most cases it would be what you are after - but i guess it would be important to let the user decide (maybe with a sensible default of "off")
  • b

    bright-gpu-74537

    01/29/2023, 10:15 AM
    what was the fix?
  • b

    billowy-waiter-28954

    01/29/2023, 10:23 AM
    Yes, this can be configured on a per-ceramic app basis anyway
  • b

    bright-gpu-74537

    01/29/2023, 10:24 AM
    cool - seems like the sensible approach... even though its probably not wanted most of the time, i can defo see a time when it would be useful
  • b

    bright-gpu-74537

    01/29/2023, 10:24 AM
    is it like configurable? I mean, how does it work out the scale?
  • b

    bright-gpu-74537

    01/29/2023, 10:25 AM
    based on original w/h?
  • b

    bright-gpu-74537

    01/29/2023, 10:26 AM
    also, another question, is it actually possible to set the scale? Lets say you had a 800x600 app, is it possible (without resizing) to say "draw all this at 3x"?
  • b

    bright-gpu-74537

    01/29/2023, 10:29 AM
    there is actually a deeper problem it seems going on with visibility on haxeui-hxwidgets - looking at it
  • b

    bright-gpu-74537

    01/29/2023, 10:37 AM
    this is the minimal repro:
    Copy code
    xml
        <button text="Toggle" onclick="b1.hidden = !b1.hidden" />
        <vbox id="b1" hidden="true">
            <button id="b2" text="Button" />
        </vbox>
    :/
  • b

    bright-gpu-74537

    01/29/2023, 10:56 AM
    alright, should be fixed now
  • b

    bright-gpu-74537

    01/29/2023, 10:58 AM
    you can just make the textfield longer, no? Maybe consider a grid if you are building up a form type thing?
  • b

    bright-gpu-74537

    01/29/2023, 11:02 AM
    Copy code
    xml
                    <section-header text="Some Form" />
    
                    <grid horizontalAlign="center">
                        <label text="Select language:" verticalAlign="center" />
                        <dropdown id="titlelang" selectedIndex="1">
                            <data>
                                ...
                            </data>
                        </dropdown>
    
                        <label text="Title:" verticalAlign="center" />
                        <textfield id="titletext" maxChars="0x54" placeholder="No title found" width="100%" />
    
                        <label text="Another Field:" verticalAlign="center" />
                        <textfield id="titletext" maxChars="0x54" placeholder="No title found" width="100%" />
    
                        <label text="Yet Another Field:" verticalAlign="center" />
                        <textfield id="titletext" maxChars="0x54" placeholder="No title found" width="100%" />
    
                        <spacer />
                        <button text="Submit" onClick="datapane.selectedIndex = 2" horizontalAlign="right" />
                    </grid>
  • f

    full-journalist-82607

    01/29/2023, 2:49 PM
    Awesome, now this works too 🙂 https://discord.com/channels/162395145352904705/565569107701923852/1066372770201608202
  • f

    full-journalist-82607

    01/29/2023, 2:50 PM
    is there a reason that is this format maxChars="0x54" ?
  • f

    full-journalist-82607

    01/29/2023, 2:56 PM
    It corrects this one too https://discord.com/channels/162395145352904705/565569107701923852/1058077420202238104
  • c

    clever-yak-82528

    01/29/2023, 3:15 PM
    awesome
  • c

    clever-yak-82528

    01/29/2023, 3:15 PM
    oh, i completely forgot about grid layouts! that would be a way better idea
  • c

    clever-yak-82528

    01/29/2023, 3:15 PM
    in my rust code i used hexadecimal for the numbering, so i wanted it to be consistent
  • c

    clever-yak-82528

    01/29/2023, 3:16 PM
    it's 84 characters
  • b

    brave-kangaroo-30399

    01/29/2023, 5:27 PM
    I suspect it was adding all of heaps to the exclusions, though I did add my other libs too
  • b

    bright-gpu-74537

    01/29/2023, 5:28 PM
    cool - i saw the PR, will merge later 👍
1...144214431444...1687Latest