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

    bright-gpu-74537

    11/14/2019, 3:42 PM
    Copy code
    haxe
    @:bind(myList.selectedIndex)
    var myListIndex:Int;
  • b

    bright-gpu-74537

    11/14/2019, 3:43 PM
    this is especially useful for when you want to pass values to custom components from xml, but dont want to setup getters / setters, using above you can just do:
  • b

    bright-gpu-74537

    11/14/2019, 3:43 PM
    Copy code
    xml
    <mycomponent myListIndex="5" />
  • u

    user

    11/14/2019, 8:23 PM
    euhm; Implementing Enter to get it to set the text data of a Textfield with correspoding events is getting chaotic; So why does textfield not call UIEvent.CHANGE ? is it because we use invalidation data ? What is all the invalidation and how does it affect setting of Data ? There is a line in the TextField.hx to dispatch the ui change but when uncommenting it breaks the textfield(i.e. the data in all textfields are null or disapear).
  • b

    bright-gpu-74537

    11/14/2019, 8:28 PM
    textfield should dispatch a UIEvent.CHANGE doesnt it??
  • u

    user

    11/14/2019, 8:31 PM
    nope
  • u

    user

    11/14/2019, 8:31 PM
    it doesnt
  • u

    user

    11/14/2019, 8:32 PM
    line 279 in TextField.hx in core
  • u

    user

    11/14/2019, 8:33 PM
    https://github.com/haxeui/haxeui-core/blob/master/haxe/ui/components/TextField.hx#L279
  • b

    bright-gpu-74537

    11/14/2019, 8:36 PM
    ok, thats defo wrong then... leave it with me, ill have a bit of a play tomorrow / tonight
  • u

    user

    11/14/2019, 8:38 PM
    ok good. Thanks for the support
  • n

    nutritious-boots-87264

    11/16/2019, 7:03 PM
    Can anyone give an example use for DataSource transformer. I initially thought that it can't be used for what I wanted to do but after looking at the code I can't imagine it working for anything. DataSource get takes an item from backing container by index and then transforms it which would mean that backing container should contain non-transformed values. Few lines lower indexOf transforms the argument first and then tries to find it using transformed valued which would indicate that backing container transformed values.
  • u

    user

    11/16/2019, 9:18 PM
    I have an example. Will share when I am on dev station
  • h

    handsome-television-62908

    11/17/2019, 10:58 PM
    Does HaxeUI have drag and drop like capabilities?
  • f

    flaky-scientist-22842

    11/17/2019, 11:41 PM
    You mean, does it have a drag and drop interface designer?
  • f

    flaky-scientist-22842

    11/17/2019, 11:45 PM
    If that's indeed your question, the answer is no, HaxeUI is "only" a library - But a form designer resembling Java Swing / Lazarus / Visual Basic would be amazing!
  • f

    flaky-scientist-22842

    11/17/2019, 11:46 PM
    Perhaps one of the talented folks of the Haxe community already provided something like that?
  • h

    handsome-television-62908

    11/17/2019, 11:51 PM
    No, I didn't mean a designer - I'm just looking for ways to implement drag and drop for my own app which I'm finding isn't so trivial
  • f

    flaky-scientist-22842

    11/17/2019, 11:56 PM
    If you feel like implementing it, sure, it's totally possible
  • h

    handsome-television-62908

    11/17/2019, 11:56 PM
    That's a given for anything, but I wouldn't want to do that if it already exists somehow.
  • h

    handsome-television-62908

    11/17/2019, 11:58 PM
    It's not completely evident, ya'know? I'm not trying to create my own containers/components if I can avoid it . . . but the events I feel like I'd need to be using from a high level don't exists in obvious existing containers/components that I'd probably want them to be in
  • f

    flaky-scientist-22842

    11/17/2019, 11:59 PM
    I guess you wouldn't need a custom container for that
  • f

    flaky-scientist-22842

    11/18/2019, 12:01 AM
    The trick would be to add a component or bundle of components which are already in HaxeUI with generic data where the user clicks after he's selected the desired container in a list
  • f

    flaky-scientist-22842

    11/18/2019, 12:01 AM
    At least that could be a starting point
  • h

    handsome-television-62908

    11/18/2019, 12:02 AM
    That's a good idea!
  • h

    handsome-television-62908

    11/18/2019, 12:02 AM
    At least for a rough draft
  • f

    flaky-scientist-22842

    11/18/2019, 12:05 AM
    Yay! Glad I could help! :D
  • f

    flaky-scientist-22842

    11/18/2019, 12:06 AM
    Once you've done that it's up to you to decide which properties of the containers you leave editable by the user
  • h

    handsome-television-62908

    11/18/2019, 12:53 AM
    Apparently I was having trouble because I was using mouse events from the wrong library . . . well damn. You'd think Haxe being statically typed would catch that sort of thing lol
  • h

    handsome-television-62908

    11/18/2019, 12:53 AM
    oh well.
1...138139140...1687Latest