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

    fierce-soccer-8550

    12/04/2022, 2:17 PM
    Thank you. That would be wonderful.
  • h

    hallowed-ocean-84954

    12/04/2022, 6:28 PM
    Hi ya, So I created but I cannot get the MainView.hx to build with the CustomTooltip private class. But this follows the example in the Components section so I'm a bit confused. Regardless it is basically what I want to do - a vbox with a tt in an accordion. Then within the vbox a number of components each with tt's. In this example only the first has a tt. If you can fix the private class bit or tell me how we can probably get an example that shows the issue
  • h

    hallowed-ocean-84954

    12/04/2022, 6:28 PM
    Thanx for this - I'll take a look soon
  • h

    hallowed-ocean-84954

    12/04/2022, 6:36 PM
    ok I fixed it by making a separate customtt class
  • h

    hallowed-ocean-84954

    12/04/2022, 6:39 PM
    Ok so as it is it shows the tt on the rubiks cube optionbox. if you uncomment the tt on L14-23 then you'll see the issue , where the configuration tt supplants the rubiks cube one
  • b

    bright-gpu-74537

    12/04/2022, 6:41 PM
    yeah, defo a bug in the tooltip sub system... thanks for the repro, ill sort it when i get a moment
  • h

    hallowed-ocean-84954

    12/04/2022, 6:44 PM
    cool - many thanx
  • a

    ambitious-knife-25690

    12/04/2022, 6:54 PM
    @bright-gpu-74537 oh, i noticed a bug with the builder earlier i forgot to mention
  • a

    ambitious-knife-25690

    12/04/2022, 6:54 PM
    I tried to import an image and it failed to add it to the project
  • a

    ambitious-knife-25690

    12/04/2022, 7:20 PM
    repro!
  • a

    ambitious-knife-25690

    12/04/2022, 7:23 PM
    If i change box, to a scrollview and oversize the image, it seems to work fine
  • a

    ambitious-knife-25690

    12/04/2022, 7:23 PM
    but i'm not sure if this is intended behaviour 🤔
  • f

    few-pizza-8232

    12/04/2022, 8:21 PM
    is there an idiomatic way to instantiate child components at arbitrary locations? I'm trying to set up a sort of timeline with arbitrary, draggable keys; I'm currently doing this with a canvas that has the line and fixed elements on it with runtime-instantiated canvas child components for each key. It works insofar as I can move them around but I can't seem to get them to start at the correct position. It's not an issue with incorrect or not-yet-defined boundaries; the drag boundary gets set correctly in the sub-canvas constructor.
  • f

    few-pizza-8232

    12/04/2022, 8:23 PM
    I tried setting
    left
    and
    top
    on the key components but that gets overridden somewhere to place them at the top-left of the root canvas. Maybe I need to instantiate them all (fixed and draggable) in a
    Absolute
    component instead of using a canvas as a container?
  • f

    few-pizza-8232

    12/04/2022, 8:31 PM
    oh actually that did it. should have tried before I asked
  • b

    bright-gpu-74537

    12/04/2022, 8:58 PM
    yeah, canvas isnt really a container... it may be, accidently, but it doesnt have a layout associated with it, etc - so, yeah, as you've worked out, absolute is what you want for, well, absolute positioning 🙂
  • b

    bright-gpu-74537

    12/04/2022, 8:58 PM
    will check it out
  • h

    hallowed-ocean-84954

    12/05/2022, 3:40 AM
    Just ran into a weird case where if I have a popup color picker popped up and then I toggle my whole UI off which changes the visibility of the enclosing vbox (enclosing several layers out - not sure how many) everything disappears as expected except the popup color picker which stays visible. I'll try to get a test case but not sure I can trigger the toggle from the keyboard in the playground.
  • f

    fierce-soccer-8550

    12/05/2022, 4:31 AM
    Out of curiosity, does the color picker sticking around, appear a little faded?
  • f

    fierce-soccer-8550

    12/05/2022, 4:32 AM
    Never mind that question, i just realised its not the same issue I had experience.
  • h

    hallowed-ocean-84954

    12/05/2022, 4:32 AM
    no - doesn't appear to change at all
  • h

    hallowed-ocean-84954

    12/05/2022, 4:32 AM
    oh ok
  • f

    fierce-soccer-8550

    12/05/2022, 4:33 AM
    is the color picker a part of the vbox? or a separate popup outside of the vbox?
  • h

    hallowed-ocean-84954

    12/05/2022, 4:33 AM
    do you happen to know how to convince the builder (playground) to listen to the keyboard ? I'm trying to put together a testcase
  • h

    hallowed-ocean-84954

    12/05/2022, 4:33 AM
    is inside the vbox
  • f

    fierce-soccer-8550

    12/05/2022, 4:36 AM
    seems like I had come across an example that would listen to the keyboard in the playground, let me see if I can figure out which it was. that may have been the haxe playground though, i'll see
  • h

    hallowed-ocean-84954

    12/05/2022, 4:37 AM
    thanx
  • f

    fierce-soccer-8550

    12/05/2022, 4:49 AM
    http://haxeui.org/api/haxe/ui/events/keyboardevent/
  • h

    hallowed-ocean-84954

    12/05/2022, 4:49 AM
    ok - got it listening to events
  • h

    hallowed-ocean-84954

    12/05/2022, 4:49 AM
    from the keyboard
1...131813191320...1687Latest