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

    purple-businessperson-14467

    08/03/2022, 5:42 PM
    In your code, since autoRegisterInteractiveEvents="false", the myAction button shouldnt be throwing a ComponentEvent
  • p

    purple-businessperson-14467

    08/03/2022, 5:43 PM
    just clarifying. As it seems to send the event still? As well as the custom event after the dialog
  • b

    bright-gpu-74537

    08/03/2022, 5:43 PM
    so the flag just means that ItemRenderer wont try and link up events automatically
  • b

    bright-gpu-74537

    08/03/2022, 5:44 PM
    Copy code
    haxe
            if (autoRegisterInteractiveEvents) {
                var components = findComponents(InteractiveComponent);
                for (c in components) {
                    if ((c is Button)) {
                        if (c.hasEvent(MouseEvent.CLICK, onItemClick) == false) {
                            c.registerEvent(MouseEvent.CLICK, onItemClick);
                        }
                    } else {
                        if (c.hasEvent(UIEvent.CHANGE, onItemChange) == false) {
                            c.registerEvent(UIEvent.CHANGE, onItemChange);
                        }
                    }
                }
  • b

    bright-gpu-74537

    08/03/2022, 5:45 PM
    did you update haxeui-core?
  • p

    purple-businessperson-14467

    08/03/2022, 5:45 PM
    well, sure, I guess I could look at the actual code. lol
  • p

    purple-businessperson-14467

    08/03/2022, 5:45 PM
    Ya. Ill check again
  • p

    purple-businessperson-14467

    08/03/2022, 5:46 PM
    I should be up todate as I see that code, yes
  • p

    purple-businessperson-14467

    08/03/2022, 5:47 PM
    wait, it is slight diff
  • b

    bright-gpu-74537

    08/03/2022, 5:47 PM
    right, so whats your issue? that ComponentEvent is firing twice? Got an example?
  • b

    bright-gpu-74537

    08/03/2022, 5:47 PM
    there is another place that flag is used, so might be there
  • b

    bright-gpu-74537

    08/03/2022, 5:47 PM
    but if you can see the flag, you have the code
  • p

    purple-businessperson-14467

    08/03/2022, 5:49 PM
    I'll make an example and when that fails to repeat. I'll fix my bug
  • p

    purple-businessperson-14467

    08/03/2022, 5:49 PM
    Seems to be the way it goes
  • p

    purple-businessperson-14467

    08/03/2022, 5:50 PM
    The builder doesnt allow adding hx source (assuming that would be security pain). right?
  • b

    bright-gpu-74537

    08/03/2022, 5:50 PM
    it doesnt currently, no, i do want to add it though, the builder hasnt been updated in years and id like to give a good once over, just havent found time (yet)
  • e

    elegant-twilight-61392

    08/03/2022, 7:57 PM
    haxe-ui is a library
  • e

    elegant-twilight-61392

    08/03/2022, 7:58 PM
    youd know if you were using it
  • c

    clever-yak-82528

    08/03/2022, 8:26 PM
    am i being an idiot or is there no way to have a frame without a title?
  • b

    bright-gpu-74537

    08/03/2022, 8:31 PM
    doesnt look like it... which backend is this, for composites it shouldnt be hard to add (feels like just an oversight)
  • c

    clever-yak-82528

    08/03/2022, 8:31 PM
    html5
  • b

    bright-gpu-74537

    08/03/2022, 8:32 PM
    yeah, so composite - ill make a note to allow, think i just assumed you'd want a title... though tbh, a frame without a title is a just bordered box (though semantically frame is nicer)
  • c

    clever-yak-82528

    08/03/2022, 8:32 PM
    yeah, the workaround is a box with a border with another box inside with a 10px margin
  • c

    clever-yak-82528

    08/03/2022, 8:32 PM
    there's probably a nicer way to do it without nested boxes but my css is lacking
  • c

    clever-yak-82528

    08/03/2022, 8:33 PM
    oh, padding
  • b

    bright-gpu-74537

    08/03/2022, 8:34 PM
    yeah: http://haxeui.org/builder/?imuxzg
  • c

    clever-yak-82528

    08/03/2022, 8:34 PM
    ah, perfect, thanks!
  • b

    bright-gpu-74537

    08/03/2022, 8:34 PM
    np - i think ill make the title for a frame optional anyway, can be nicer (semantically) than
  • c

    clever-yak-82528

    08/03/2022, 8:35 PM
    👍
  • c

    clever-yak-82528

    08/03/2022, 8:35 PM
    having to manually set it to "" might be better than making them blank by default - otherwise people might see them being blank and not realise there's an option for it
1...119811991200...1687Latest