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

    bright-gpu-74537

    07/03/2020, 1:39 PM
    in the monaco editor, right?
  • f

    fast-rain-20339

    07/03/2020, 1:40 PM
    Yep, if that's what it's called 🙂
  • f

    fast-rain-20339

    07/03/2020, 1:40 PM
    Code editor
  • b

    bright-gpu-74537

    07/03/2020, 1:40 PM
    funnily enough this was a bug i encountered with one my clients for something they were working on
  • b

    bright-gpu-74537

    07/03/2020, 1:40 PM
    upgrading monaco will fix it, ill make a note
  • f

    fast-rain-20339

    07/03/2020, 1:40 PM
    👍
  • t

    tall-dinner-7562

    07/03/2020, 1:58 PM
    So one more question, I was trying to use item render with the list view it compiles but after that when trying to run we get a seg fault.
  • b

    bright-gpu-74537

    07/03/2020, 2:01 PM
    you got an example? Ill have to refresh my memory to how custom item renderers work natively
  • b

    bright-gpu-74537

    07/03/2020, 2:01 PM
    because standard wxWidgets components wont suffice
  • b

    bright-gpu-74537

    07/03/2020, 2:02 PM
    i remember there is a gotcha... i just cant remember what it is now
  • t

    tall-dinner-7562

    07/03/2020, 2:02 PM
    Ahh okay. I was trying to just put the example on the website for list views to see if it was an issue with what I wrote in mine.
  • b

    bright-gpu-74537

    07/03/2020, 2:02 PM
    ok, that should work, ill try and run that
  • b

    bright-gpu-74537

    07/03/2020, 2:04 PM
    this one, right:
  • b

    bright-gpu-74537

    07/03/2020, 2:04 PM
    Copy code
    xml
            <listview width="200" height="200">
                <item-renderer width="100%" layoutName="horizontal">
                    <image id="icon" verticalAlign="center" />
                    <label id="value" width="100%" verticalAlign="center" />
                    <button id="action" />
                </item-renderer>
                <data>
                    <item value="Item 1" action="Action 1" icon="haxeui-core/styles/default/haxeui_tiny.png" />
                    <item value="Item 2" action="Action 2" icon="haxeui-core/styles/default/haxeui_tiny.png" />
                    <item value="Item 3" action="Action 3" icon="haxeui-core/styles/default/haxeui_tiny.png" />
                    <item value="Item 4" action="Action 4" icon="haxeui-core/styles/default/haxeui_tiny.png" />
                    <item value="Item 5" action="Action 5" icon="haxeui-core/styles/default/haxeui_tiny.png" />
                    <item value="Item 6" action="Action 6" icon="haxeui-core/styles/default/haxeui_tiny.png" />
                    <item value="Item 7" action="Action 7" icon="haxeui-core/styles/default/haxeui_tiny.png" />
                    <item value="Item 8" action="Action 8" icon="haxeui-core/styles/default/haxeui_tiny.png" />
                    <item value="Item 9" action="Action 9" icon="haxeui-core/styles/default/haxeui_tiny.png" />
                </data>
            </listview>
  • b

    bright-gpu-74537

    07/03/2020, 2:04 PM
    ?
  • t

    tall-dinner-7562

    07/03/2020, 2:05 PM
    I was trying the one with the checkboxes one moment
  • b

    bright-gpu-74537

    07/03/2020, 2:05 PM
    which one? In the playground? Or the component explorer?
  • t

    tall-dinner-7562

    07/03/2020, 2:06 PM
    component explorer
  • t

    tall-dinner-7562

    07/03/2020, 2:06 PM
    Copy code
    xml
     <!-- custom renderer -->
            <vbox>
                <listview id="lv2" width="200" height="150" selectedIndex="1">
                    <item-renderer layoutName="horizontal" width="100%">
                        <checkbox id="complete" />
                        <label width="100%" id="item" />
                        <image id="image" />
                    </item-renderer>
                    <data>
                        <item complete="false" item="Item 1" image="haxeui-core/styles/default/haxeui_tiny.png" />
                        <item complete="true" item="Item 2" image="haxeui-core/styles/default/haxeui_tiny.png" />
                        <item complete="true" item="Item 3" image="haxeui-core/styles/default/haxeui_tiny.png" />
                        <item complete="false" item="Item 4" image="haxeui-core/styles/default/haxeui_tiny.png" />
                        <item complete="true" item="Item 5" image="haxeui-core/styles/default/haxeui_tiny.png" />
                        <item complete="true" item="Item 6" image="haxeui-core/styles/default/haxeui_tiny.png" />
                        <item complete="false" item="Item 7" image="haxeui-core/styles/default/haxeui_tiny.png" />
                        <item complete="true" item="Item 8" image="haxeui-core/styles/default/haxeui_tiny.png" />
                        <item complete="false" item="Item 9" image="haxeui-core/styles/default/haxeui_tiny.png" />
                    </data>
                </listview>
                <vbox>
                    <button text="Add 100 items (via script)" onclick="addItems(lv2, 100)" />
                    <button text="Add 100 items (via code)" id="addItems2" />
                </vbox>
            </vbox>
  • b

    bright-gpu-74537

    07/03/2020, 2:06 PM
    gotcha... ill have a play
  • b

    bright-gpu-74537

    07/03/2020, 2:10 PM
    yeah, insta-crash for me too... must be a regression somewhere... zzzzzzz
  • t

    tall-dinner-7562

    07/03/2020, 2:13 PM
    that's rough; I'm glad I'm not crazy. If there's anything I can do to help let me know
  • b

    bright-gpu-74537

    07/03/2020, 2:14 PM
    thanks, looking at it now, this certainly all worked before... so something new i added broke it...
  • b

    bright-gpu-74537

    07/03/2020, 2:42 PM
    well, i found the commit the broke it 🙂
  • b

    bright-gpu-74537

    07/03/2020, 2:42 PM
    so... ... progress :/
  • b

    bright-gpu-74537

    07/03/2020, 2:56 PM
    ... native is fun though 🙂
  • t

    tall-dinner-7562

    07/03/2020, 2:57 PM
    Ayy nice and what was the commit?
  • b

    bright-gpu-74537

    07/03/2020, 2:57 PM
    a change to the lifecycle between how composite and native components are built / registered
  • b

    bright-gpu-74537

    07/03/2020, 2:58 PM
    6bda2aa8b91e452943f924e0211ac5599f315dda
  • t

    tall-dinner-7562

    07/03/2020, 3:10 PM
    Hmm gotcha I'll take a look
1...307308309...1687Latest