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

    bright-gpu-74537

    12/20/2022, 5:55 PM
    hmmmm, right... so does "focus = true" work on the textfield? Maybe there will need to be some changes to haxeui-hxwidgets, but i though it was all working
  • b

    bright-gpu-74537

    12/20/2022, 5:55 PM
    also reminds me that a
    <dropdown editable="true" />
    is a nice addition
  • f

    full-journalist-82607

    12/20/2022, 5:58 PM
    It doesn't use a haxeui textfield, it's a textentry of a comboBox. But in fact, I don't know even enough of wxwidgets to know how to access to the text entry of a comboBox.
  • b

    bright-gpu-74537

    12/20/2022, 5:59 PM
    oh, so that whole component is a native one, ie, thats how comboboxes look on your OS?
  • f

    full-journalist-82607

    12/20/2022, 6:01 PM
    yes, in the video, the upper one is a combobox, the other one ( we don't see much) is a choice. As I understand it, only on GTK a combobox and a choice is different, in other oses (windows and mac) they are actually the same. ( I'm on linux KDE plasma now)
  • b

    bright-gpu-74537

    12/20/2022, 6:02 PM
    right, so, my guess is that if the wx component (which is a native component) isnt behaving well, its either a) wx or b) the OS
  • f

    full-journalist-82607

    12/20/2022, 6:05 PM
    The problem is normally you type and nothing really happens. I'm the one making the filter, and the one showing the popup. But when I show the popup, it steals the focus, and I don't enough about wx Widgets to focus back on the text entry
  • b

    bright-gpu-74537

    12/20/2022, 6:05 PM
    but the whole thing is a self contained wx component right?
  • b

    bright-gpu-74537

    12/20/2022, 6:06 PM
    ie, a
    wxcombobox
  • f

    full-journalist-82607

    12/20/2022, 6:06 PM
    Yes. But as I don't know about wxwidgets, I thought maybe there was a way, but maybe not ?
  • b

    bright-gpu-74537

    12/20/2022, 6:07 PM
    not 100% sure, there might be some info here: https://docs.wxwidgets.org/3.0/classwx_combo_box.html
  • b

    bright-gpu-74537

    12/20/2022, 6:07 PM
    but i dont know how to get the textfield part of a combo, or if its even possible
  • f

    full-journalist-82607

    12/20/2022, 6:09 PM
    Okay, thanks ! So I'll continue to explore another day 🙂 Hopefully it will work
  • b

    bright-gpu-74537

    12/20/2022, 6:09 PM
    it sounds, tbh, that for what you are trying to do, wxcombobox is the wrong control
  • f

    full-journalist-82607

    12/20/2022, 6:09 PM
    Oh, why ?
  • b

    bright-gpu-74537

    12/20/2022, 6:09 PM
    dunno, feels more like you are trying to create a sort of "auto complete" thing, no?
  • f

    full-journalist-82607

    12/20/2022, 6:11 PM
    I just want to do what you did for composite. I know there are autocomplete on wxwidgets, there seem easier to use, but I was focused on reflecting the behaviour of your composite dropdown
  • b

    bright-gpu-74537

    12/20/2022, 6:12 PM
    right, i see, so this is basically trying to have a native counter part for a searchable dropdown?
  • f

    full-journalist-82607

    12/20/2022, 6:12 PM
    exactly
  • b

    bright-gpu-74537

    12/20/2022, 6:13 PM
    maybe combobox is the right choice (still not sure), ill have a play with wx at some point and see how it works / feels
  • f

    full-journalist-82607

    12/20/2022, 6:14 PM
    BTW, what do you mean by dropdown editable="true" ? 🙂
  • b

    bright-gpu-74537

    12/20/2022, 6:15 PM
    so the idea would be to be able to set "myHaxeUIDropown.ediable = true" and that would, essentially, be a combobox
  • b

    bright-gpu-74537

    12/20/2022, 6:15 PM
    ie, a textfield instead of a label, in fact, i wanted to go one further and allow ItemRenderers to be editable, meaning you get editable listviews / tableviews / treeviews "for free"
  • b

    bright-gpu-74537

    12/20/2022, 6:17 PM
    i think the main difference between a searchable popup list and a combobox is, i think, you can have freetext in a combo...
  • b

    bright-gpu-74537

    12/20/2022, 6:17 PM
    ie, the value doesnt have to be one of the options
  • b

    bright-gpu-74537

    12/20/2022, 6:17 PM
    (i could be wrong about that, but if i am, i dont really see the point in a combobox in general)
  • f

    full-journalist-82607

    12/20/2022, 6:19 PM
    You're not wrong. The value doen't have to be an option ( which enable to have a placeholder text ! 🙂 ) but if you want non editable (by user) value, it has has to be an option...
  • b

    bright-gpu-74537

    12/20/2022, 6:21 PM
    yeah, so i think the concept of "editable item renderers" could work out quite nicely, just need to think about how best to implement them
  • b

    bright-gpu-74537

    12/20/2022, 6:22 PM
    it could add alot of flexibility to things, i often have to roll out my own systems for things, like renaming nodes in a treeview (like in the builder)...
  • b

    bright-gpu-74537

    12/20/2022, 6:22 PM
    they arent complicated to do, but its defo alot more effort that just going ".editable=true"
1...134513461347...1687Latest