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

    bright-gpu-74537

    05/26/2020, 8:01 AM
    (and the code is basically already written in OptionBox anyway)
  • f

    fast-rain-20339

    05/26/2020, 8:06 AM
    Made an issue, let me know if anything needs clarificaiton šŸ™‚ https://github.com/haxeui/haxeui-kha/issues/46 Thanks for all your work! I can't believe how quickly this UI's come together
  • b

    bright-gpu-74537

    05/26/2020, 8:07 AM
    perfect, thanks... issue makes sense
  • b

    bright-gpu-74537

    05/26/2020, 8:07 AM
    šŸ‘
  • f

    fast-rain-20339

    05/26/2020, 10:20 AM
    Hey again šŸ™‚ Just trying to write a script to untoggle the other buttons. It works, but I have to mouse over the unselected buttons for them to show visually as unselected. Is there a
    .refresh()
    method, or similar? Hide/showing didn't work
  • b

    bright-gpu-74537

    05/26/2020, 10:21 AM
    sounds like a bug, can you extract the issue and either open a haxeui-core issue, or paste here
  • f

    fast-rain-20339

    05/26/2020, 10:22 AM
    Perhaps it's because of hscript? Code is
    Copy code
    function setTool(tool) {
                tool_pointer.toggle = tool == "tool_pointer";
                tool_pen.toggle = tool == "tool_pen";
                tool_brush.toggle = tool == "tool_brush";
                tool_map.toggle = tool == "tool_map";
                tool_tile.toggle = tool == "tool_tile";
                tool_pointer.refresh();
                tool_pen.refresh();
                tool_brush.refresh();
                tool_map.refresh();
                tool_tile.refresh();
            }
  • f

    fast-rain-20339

    05/26/2020, 10:23 AM
    Ah - refresh isn't define, but that's the code.
  • b

    bright-gpu-74537

    05/26/2020, 10:23 AM
    toggle sets whether it is to be used as a toggle button, .selected sets whether it is down or not
  • f

    fast-rain-20339

    05/26/2020, 10:23 AM
    Ah! Thanks very much šŸ˜„
  • b

    bright-gpu-74537

    05/26/2020, 10:24 AM
    šŸ™‚
  • f

    fast-rain-20339

    05/26/2020, 10:24 AM
    Perfect, works great šŸ˜„
  • b

    bright-gpu-74537

    05/26/2020, 10:24 AM
    the one page that has semi decent docs... ... http://haxeui.org/api/haxe/ui/components/Button.html šŸ˜„
  • f

    fast-rain-20339

    05/26/2020, 10:24 AM
    Ahh whoops. Thanks for your help!
  • b

    bright-gpu-74537

    05/26/2020, 10:25 AM
    heh heh, no worries, my guess is that the general thought is "meh, dont check the docs, they arent going to help anyway :o"
  • b

    bright-gpu-74537

    05/26/2020, 10:25 AM
    šŸ™‚
  • b

    bright-gpu-74537

    05/26/2020, 10:26 AM
    especially true considering "button" is basically the only one that has even remotely full / useful docs
  • f

    fast-rain-20339

    05/26/2020, 10:27 AM
    I noticed that the docs let you look at super class definitions, pretty cool
  • b

    bright-gpu-74537

    05/26/2020, 10:28 AM
    yeah, i found it a little more useful navigating round that way
  • b

    bright-gpu-74537

    05/26/2020, 10:28 AM
    you can click on the items in the class image in the top, thats fairly useful too
  • c

    clever-oil-61353

    05/26/2020, 3:33 PM
    I seem to be stumped on this...... I have for example, a textarea in xml with an id of "texta1" ........ in hx i have a dom text area element created with id "texta2".... i want the dom textarea element to take the place of the one from xml. What do i need to do to achieve that? the dom finds the one from xml.... document.getElementId("texta1")..... i just cant seem to figure out how to replace textarea1 with textarea2.
  • c

    clever-oil-61353

    05/26/2020, 3:34 PM
    and, Good morning.
  • b

    bright-gpu-74537

    05/26/2020, 3:35 PM
    its easier if you can put a minimal example together of what you are trying to do, its simpler to see a (small) example rather than to try and understand the bug / feature / issue
  • b

    bright-gpu-74537

    05/26/2020, 3:35 PM
    šŸ™‚
  • b

    bright-gpu-74537

    05/26/2020, 3:35 PM
    (and morning... ... ... afternoon šŸ™‚ )
  • c

    clever-oil-61353

    05/26/2020, 3:40 PM
    i'll do that real quick
  • c

    clever-oil-61353

    05/26/2020, 3:45 PM
    Put it together with the haxeui html5 template.........
  • c

    clever-oil-61353

    05/26/2020, 3:46 PM
    i've tried all types of variations but, im apparently overlooking the command i need to use.
  • b

    bright-gpu-74537

    05/26/2020, 3:48 PM
    ok, so you'll need a custom component to wrap the codemirror textarea stuff in, essentially exactly like that custom component i showed you on the forums. If its not clear zip up all the stuff in that project (ie, the CodeMirror externs, the .js files, everything, and ill show you what i mean)
  • c

    clever-oil-61353

    05/26/2020, 3:49 PM
    alright
1...238239240...1687Latest