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

    clever-yak-82528

    08/29/2022, 6:12 AM
    is there a way to combine the tree view and list view as menus examples together?
  • c

    clever-yak-82528

    08/29/2022, 6:13 AM
    i.e. very simple tree structure on the left with two nodes in the root, each of which contains several elements that behave like this
  • b

    bright-gpu-74537

    08/29/2022, 6:14 AM
    you might be able to use a custom renderer to achieve that
  • b

    bright-gpu-74537

    08/29/2022, 6:15 AM
    although, this wouldnt work on native (since there is no treeview currently)
  • c

    clever-yak-82528

    08/29/2022, 6:15 AM
    aaa
  • c

    clever-yak-82528

    08/29/2022, 6:17 AM
    trying to replicate a layout someone did in tkinter in python except nicely and it occurred to me that i could use listviews to make it look nicer, but i need the tree stuff too
  • b

    bright-gpu-74537

    08/29/2022, 6:17 AM
    do you have an image of the screen?
  • c

    clever-yak-82528

    08/29/2022, 6:18 AM
    i want to translate it to haxeui because the original makes me feel a bit sick looking at it
  • b

    bright-gpu-74537

    08/29/2022, 6:18 AM
    is that just a treeview though?
  • b

    bright-gpu-74537

    08/29/2022, 6:19 AM
    also, as i mentioned, there is no treeview in haxeui-hxwidgets... maybe i should stop putting it off and just add it 🙂
  • c

    clever-yak-82528

    08/29/2022, 6:19 AM
    heh
  • c

    clever-yak-82528

    08/29/2022, 6:19 AM
    more or less, though there's only ever one layer of tree
  • c

    clever-yak-82528

    08/29/2022, 6:19 AM
    two layers, depending on how you count it, i suppose
  • b

    bright-gpu-74537

    08/29/2022, 6:20 AM
    i think if you are going to go the native route, there defo no way you are going to be able to combine the treeview and the "listview as menu"
  • c

    clever-yak-82528

    08/29/2022, 6:20 AM
    welp
  • c

    clever-yak-82528

    08/29/2022, 6:21 AM
    ok, so, assuming i don't do that
  • b

    bright-gpu-74537

    08/29/2022, 6:21 AM
    the native treeview (if it existed) would literally just be a native tree view
  • c

    clever-yak-82528

    08/29/2022, 6:21 AM
    i assume what i would want to do is have a stack on the right and then a treeview on the left
  • c

    clever-yak-82528

    08/29/2022, 6:21 AM
    then do something for onchange on the treeview
  • b

    bright-gpu-74537

    08/29/2022, 6:22 AM
    yeah, sounds about right...
  • b

    bright-gpu-74537

    08/29/2022, 6:23 AM
    ill knock up a native counterpart to treeview once ive had enough coffee, shouldnt be too hard (i think all the parts are there - ive just been being lazy)
  • c

    clever-yak-82528

    08/29/2022, 6:23 AM
    nice
  • c

    clever-yak-82528

    08/29/2022, 6:23 AM
    so how do you get the currently selected location?
  • b

    bright-gpu-74537

    08/29/2022, 6:23 AM
    selectedNode
  • c

    clever-yak-82528

    08/29/2022, 6:23 AM
    one website is saying selectedLocation but that doesnt seem to work
  • c

    clever-yak-82528

    08/29/2022, 6:23 AM
    this gets the node but then how do i get the location in the list?
  • b

    bright-gpu-74537

    08/29/2022, 6:24 AM
    i think you can turn a node into a path.. two secs
  • b

    bright-gpu-74537

    08/29/2022, 6:25 AM
    ok, so it would be
    myTreeView.selectedNode.nodePath()
  • b

    bright-gpu-74537

    08/29/2022, 6:25 AM
    there is an optional param in nodePath which is what field you would like it to use from its data
  • b

    bright-gpu-74537

    08/29/2022, 6:26 AM
    if its not set, it will use either "id", "nodeId" or "text" (in that order of precedence)
1...122712281229...1687Latest