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

    best-agent-85158

    08/05/2022, 11:19 AM
    really waited for that, looks awsome!
  • h

    hallowed-ocean-84954

    08/05/2022, 2:11 PM
    I have a flixel use for this. I assume it'll work with any backend right ?
  • b

    bright-gpu-74537

    08/05/2022, 2:41 PM
    actually... canvas isnt implemented on flixel yet, that said, i doubt it will be hard at all
  • b

    bright-gpu-74537

    08/05/2022, 2:41 PM
    will sort it out over the weekend, need to do kha also
  • h

    hallowed-ocean-84954

    08/05/2022, 2:41 PM
    Ok. Thanx
  • f

    full-journalist-82607

    08/05/2022, 7:06 PM
    Hmm, is there a way to bring to the front a component, so that when you're dragging it, it doesn't go under other components ?
  • b

    bright-gpu-74537

    08/05/2022, 7:47 PM
    moveComponentToBack, moveComponentBackward, moveComponentToFront, moveComponentFrontward
  • l

    loud-salesclerk-7438

    08/06/2022, 2:14 PM
    I'm trying to send KeyboardEvents to a TextField to simulate text input (see latest login sample project from haxeium repository), but they don't seem to register or have any effect. is there a trick to get them working?
  • l

    loud-salesclerk-7438

    08/06/2022, 2:15 PM
    I also noticed that when using a TabView non-seletcted tabs are not always clickable and don't always react to hover events when compiling to C++ (tested on Linux). HTML5 builds seem to be unaffected. it works a 100% when you hover over the icon and also when you move your mouse exactly onto the border of each tab.
  • l

    loud-salesclerk-7438

    08/06/2022, 2:17 PM
    of course sending MouseEvents to those TabBarButtons also always works, so they my tests don't catch that
  • f

    full-journalist-82607

    08/06/2022, 3:03 PM
    Hmm, the problem, it seems only to work inside the parentComponent. And the parent component refreshes itself which moves all the other components. If there were a way to stop the other children repositioning, I could maybe attach thecomponent to the screen . Or if there isn't,maybe replace the component with a spacer of the same size .
  • b

    bright-gpu-74537

    08/06/2022, 6:58 PM
    So yeah, im not sure thats going to work, text input is extremely backend (framework) specific. Sending haxeui keyboard events isnt really going to do anything since the backend isnt going to be responding to them
  • b

    bright-gpu-74537

    08/06/2022, 6:58 PM
    im not sure i follow - can you show a sample or something like that?
  • l

    loud-salesclerk-7438

    08/06/2022, 7:04 PM
    understood, so I would need to send framework specific keyboard events (which should be doable by using conditional code sections like
    #if openfl
    ). in the case of a TextField with openfl backend where should I send those events to?
  • b

    bright-gpu-74537

    08/06/2022, 7:06 PM
    yeah, maybe, i mean, would that even work with openfl? I mean, will sending openfl keyboard events to an openfl text input cause the character to display? I not sure it would... dunno. > with openfl backend where should I send those events to
    myHaxeUITextField.getTextInput().textField
  • b

    best-agent-85158

    08/06/2022, 9:04 PM
    How do i make an HBox that wraps elements when they overflow? couldnt find how to do that
  • b

    best-agent-85158

    08/06/2022, 9:04 PM
    pretty much, if theres 5 elements and the 5th element makes the HBox wider then a maximum width, the 5th element will be escaped to a new line
  • b

    best-agent-85158

    08/06/2022, 9:59 PM
    is this a bug? added a buttonbar to a dialog
  • b

    best-agent-85158

    08/06/2022, 9:59 PM
    openfl backend
  • b

    best-agent-85158

    08/06/2022, 9:59 PM
    if it is, ill try to send a minimal repro
  • l

    loud-salesclerk-7438

    08/06/2022, 10:03 PM
    no matter what I do, I don't seem to be able to send any keyboard events to a TextField, so I guess setting
    text
    property will have to do for now - until someone finds a clever way to do it.
  • b

    bright-gpu-74537

    08/06/2022, 10:23 PM
    you mean sending openfl key events does work (when sending to openfl textfield)... im not surprised really, i mean, textfield dispatches key events, it doesnt respond to them (similar to haxeui)
  • b

    bright-gpu-74537

    08/06/2022, 10:26 PM
    http://haxeui.org/builder/?oeecxj
  • l

    loud-salesclerk-7438

    08/06/2022, 10:26 PM
    I even tried to sending events through browser document or from JS console but no luck. I don't really understand how key events work in lime/openfl. maybe I should look at different backends...
  • b

    bright-gpu-74537

    08/06/2022, 10:27 PM
    defo send a repro... it seems that you have added components to the dialog and not the dialog content, but just using addComponent, should add things to the dialog content, so if you have added directly to the dialog container, im not sure how you managed to 😄
  • b

    bright-gpu-74537

    08/06/2022, 10:28 PM
    honestly, i dont think it will help with different backends (probably the same)... i think its probably something like: "lime detects you typed, it it passes that to openfl, openfl does its text stuff, and then dispatches a keyboard event"
  • b

    bright-gpu-74537

    08/06/2022, 10:29 PM
    so dispatching a keyboard events to lime / openfl / textfield is probably pretty meaningless since it just dispatches them and isnt listening for them (thats my guess anyway)
  • l

    loud-salesclerk-7438

    08/06/2022, 10:35 PM
    I tried to convince lime to accept my key events, but I feel like I don't really understand how it all works (or is supposed to work), so I might go over to the openfl people and try to get some enlightenment
  • b

    bright-gpu-74537

    08/06/2022, 10:36 PM
    yeah, fair enough... but my guess is that keyboard events are emitted and not listened for... (at the openfl level)... but ofc, i could be talking out my arse... i know for haxeui thats the case
  • b

    bright-gpu-74537

    08/06/2022, 10:37 PM
    that said, maybe there is a lime event or something that would work... but i dont really know enough about lime to able to assert that (does it even send "events" up to openfl etc? No idea)
1...120012011202...1687Latest