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

    bright-gpu-74537

    05/21/2023, 2:04 PM
    defo one of the more "fun" backends... 🙂
  • r

    refined-greece-48002

    05/21/2023, 3:33 PM
    Lately one of two things I've been missing is a multi selectable dropdown menu, so I thought I might be able to fake it up like that
  • r

    refined-greece-48002

    05/21/2023, 3:34 PM
    (the other thing is an indeterminate state for checkboxes, like when they can have checked, unchecked, or a square in them in html etc)
  • b

    bright-gpu-74537

    05/21/2023, 3:36 PM
    multi selectable dropdown as in, say, a dropdown with a bunch of items and checkboxes and can select more than one and have it display like "item1, item2, item3" in the button?
  • r

    refined-greece-48002

    05/21/2023, 3:38 PM
    To avoid over generalizing the problem: in a dropdown list property in a property grid, I want to be able to click multiple items in the list and get back an array of all items clicked. On opening the dropdown, all selected items would be highlighted.
  • r

    refined-greece-48002

    05/21/2023, 3:39 PM
    I don't actually need the individual entries to have checkboxes etc in them, I just figured that was one way I could achieve this if it was already supported
  • b

    bright-gpu-74537

    05/21/2023, 3:40 PM
    right, so the default dropdown list doesnt support multiple selections, listview however does (and thats all dropdown uses), so you technically create your own dropdown handler to show "your" listview with multiple selections, the "custom handler" here http://haxeui.org/explorer/#basic/dropdowns might help, you will have to do a little wiring yourself though
  • r

    refined-greece-48002

    05/21/2023, 3:41 PM
    I can live with that, thanks for pointing me in the right direction!
  • b

    bright-gpu-74537

    05/21/2023, 3:41 PM
    probably worth noting that with the "item pickers" im working on i would hope something like this to be a little simpler (hell, i might even just expose "multiple" on list-item-picker)
  • b

    bright-gpu-74537

    05/21/2023, 3:43 PM
    i was also about to point you to listview selection modes: http://haxeui.org/builder/?a48e4099 ... but its bugged (i havent used it once i dont think, so ill need to see whats going on there)
  • r

    refined-greece-48002

    05/21/2023, 3:48 PM
    Indeed, that one doesn't seem to be working 😅
  • b

    bright-gpu-74537

    05/21/2023, 3:50 PM
    nope, prolly something dumb... ill get it sorted as it is there for a reason, even if i never needed / used it
  • c

    cool-musician-79004

    05/21/2023, 3:55 PM
    Oh, I thought it was the opposite. Does pdcurses work on windows only?
  • b

    bright-gpu-74537

    05/21/2023, 3:56 PM
    i think it should work on anything, iirc i just had some linker issues, so some hxcpp stuff... at least thats my memory...
  • b

    bright-gpu-74537

    05/22/2023, 6:53 AM
    alright, its working now: http://haxeui.org/builder/?2e1fcb9f
  • b

    bright-gpu-74537

    05/22/2023, 6:53 AM

    https://cdn.discordapp.com/attachments/565569107701923852/1110098138758398004/mutiple-selections.gif▾

  • b

    bright-yak-48460

    05/23/2023, 3:27 PM
    👍
  • r

    refined-greece-48002

    05/23/2023, 4:08 PM
    It occurs to me after trying to check this on mobile that you can't hold shift on mobile 😅
  • r

    refined-greece-48002

    05/23/2023, 4:08 PM
    I will give it a spin when I'm next at the pc.
  • b

    bright-gpu-74537

    05/23/2023, 6:04 PM
    https://github.com/haxeui/haxeui-core/blob/master/haxe/ui/constants/SelectionMode.hx
  • b

    bright-gpu-74537

    05/24/2023, 10:25 AM
    https://cdn.discordapp.com/attachments/565569107701923852/1110876287733600327/month-picker.mp4
  • b

    bright-gpu-74537

    05/24/2023, 10:26 AM
    ... my first "picker" in the wild... ... "month picker" 🥳
  • h

    happy-agent-4114

    05/24/2023, 3:26 PM
    is there a simple way to vertically center text that I'm completely missing
  • h

    happy-agent-4114

    05/24/2023, 3:27 PM
    I want this to be vertically centered

    https://cdn.discordapp.com/attachments/565569107701923852/1110952111467921508/image.png▾

  • b

    bright-gpu-74537

    05/24/2023, 3:29 PM
    http://haxeui.org/builder/?66b11b94
  • b

    bright-gpu-74537

    05/24/2023, 3:29 PM
    (i wouldnt use the last method, just there for illustration)
  • h

    happy-agent-4114

    05/24/2023, 3:52 PM
    danke
  • c

    cool-musician-79004

    05/24/2023, 4:47 PM
    Web or desktop ?
  • b

    bright-gpu-74537

    05/24/2023, 4:48 PM
    haxeui-html5, so browser... but other backends should look / work the same / similar
  • b

    bright-gpu-74537

    05/24/2023, 4:49 PM
    (not native hxwidgets though obviously)
1...16831684168516861687Latest