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

    bright-gpu-74537

    03/01/2023, 5:23 PM
    either way, if that is how ceramic handles events i can see it being a problem in other ways, or in user apps....
  • s

    salmon-knife-33932

    03/01/2023, 5:23 PM
    ow Thanks for your advice guys!!
  • a

    ambitious-knife-25690

    03/01/2023, 5:44 PM
    Copy code
    xml
    <vbox>
            <dropdown text="Select Item">
                <data>
                    <item text="Item 1" />
                    <item text="Item 2" />
                    <item text="Item 3" />
                    <item text="Item 4" />
                    <item text="Item 5" />
                    <item text="Item 6" />
                    <item text="Item 7" />
                    <item text="Item 8" />
                    <item text="Item 9" />
                </data>
            </dropdown>
    </vbox>
  • a

    ambitious-knife-25690

    03/01/2023, 5:44 PM
    does this look correct?
  • b

    bright-gpu-74537

    03/01/2023, 5:46 PM
    could do, what if you give the dd an id
  • b

    bright-gpu-74537

    03/01/2023, 5:47 PM
    ie, are all these events for the same component... which is possible / likely
  • a

    ambitious-knife-25690

    03/01/2023, 5:49 PM
    huh
  • a

    ambitious-knife-25690

    03/01/2023, 5:49 PM
    this.id
    == null
  • a

    ambitious-knife-25690

    03/01/2023, 5:49 PM
    even tho i set
    id="dd"
    in the xml
  • b

    bright-gpu-74537

    03/01/2023, 5:50 PM
    that seems a little odd
  • b

    bright-gpu-74537

    03/01/2023, 5:50 PM
    lemme try this end on html5
  • b

    bright-gpu-74537

    03/01/2023, 5:51 PM
    strange i get null too
  • b

    bright-gpu-74537

    03/01/2023, 5:53 PM
    Copy code
    haxe
            Toolkit.callLater(function() {
                trace(this.id, type, cast(this, Component).className);
            });
  • b

    bright-gpu-74537

    03/01/2023, 5:53 PM
    works
  • a

    ambitious-knife-25690

    03/01/2023, 5:54 PM
    should i put that in the event function?
  • b

    bright-gpu-74537

    03/01/2023, 5:54 PM
    https://pastebin.com/dZpVA8Bv
  • b

    bright-gpu-74537

    03/01/2023, 5:55 PM
    in the mapEvent, yeah
  • b

    bright-gpu-74537

    03/01/2023, 5:56 PM
    but doesnt really matter, i can see the events and they all make sense i think... you could argue that the itemrenderer one isnt needed, which would likely fix your specific issue, but there is bound to be other places here when parents and children are expecting mouse events (which is pretty normal)
  • a

    ambitious-knife-25690

    03/01/2023, 5:59 PM
    oh no, that is fair
  • a

    ambitious-knife-25690

    03/01/2023, 6:00 PM
    so i guess i'm in a bit of a limbo here
  • b

    bright-gpu-74537

    03/01/2023, 6:01 PM
    well, your other option would be to track the mouse and handle everything like that yourself, but i can tell you that can be a real pain (ie, kha)
  • a

    ambitious-knife-25690

    03/01/2023, 6:02 PM
    yeah, i never even checked this before but it looks like i can't even select the items of the dropdown
  • b

    bright-gpu-74537

    03/01/2023, 6:02 PM
    that the same for listview?
  • a

    ambitious-knife-25690

    03/01/2023, 6:03 PM
    yep
  • a

    ambitious-knife-25690

    03/01/2023, 6:04 PM
    i can select checkboxes
  • b

    bright-gpu-74537

    03/01/2023, 6:04 PM
    makes sense... each item has an up / down handler, but so does the parent list, for "drag to scroll"
  • a

    ambitious-knife-25690

    03/01/2023, 6:04 PM
    just not items
  • b

    billowy-waiter-28954

    03/01/2023, 6:08 PM
    That is not correct. The parent box will get the event if the even doesn't hit the area of the child box
  • b

    bright-gpu-74537

    03/01/2023, 6:09 PM
    OK, so that makes sense then, no?
  • b

    billowy-waiter-28954

    03/01/2023, 6:09 PM
    yes it does
1...156215631564...1687Latest