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

    elegant-twilight-61392

    08/16/2022, 6:02 PM
    windows doesnt allow that
  • b

    bright-gpu-74537

    08/16/2022, 6:02 PM
    nope, 'fraid not, there is no universal way to do that
  • b

    bright-gpu-74537

    08/16/2022, 6:02 PM
    thats not accurate i dont think, i think hxwidgets can have a folder select
  • b

    bright-gpu-74537

    08/16/2022, 6:03 PM
    but there is nothing in haxeui itself to expose that, since it would only work on a single backend
  • b

    bright-gpu-74537

    08/16/2022, 6:03 PM
    https://docs.wxwidgets.org/3.0/classwx_dir_dialog.html
  • e

    elegant-twilight-61392

    08/16/2022, 6:03 PM
    well using windows apis, im pretty sure you cant select a folder, but theres nothing stopping you from making your own file picker that can select folders
  • b

    bright-gpu-74537

    08/16/2022, 6:04 PM
    i think there is an inbuilt one also, at least ive seen one in quite a few apps that all look the same
  • b

    bright-gpu-74537

    08/16/2022, 6:04 PM
    https://stackoverflow.com/questions/12034943/win32-select-directory-dialog-from-c-c
  • n

    nutritious-australia-67366

    08/16/2022, 6:05 PM
    Makes sense, hxWidgets is only for native targets right?
  • b

    bright-gpu-74537

    08/16/2022, 6:05 PM
    it is yeah
  • n

    nutritious-australia-67366

    08/16/2022, 6:05 PM
    Oki
  • n

    nutritious-australia-67366

    08/16/2022, 6:08 PM
    I'm trying to do a POC of an editor, where you select a root folder, and then recursively traverse that folder for certain files that should be filled into a treeView and then when an item in the tree is selected a tab with the content of the file is opened. That's why I need to select a folder.
  • b

    bright-gpu-74537

    08/16/2022, 6:09 PM
    i think if you are using openfl, pretty much your only option is going to be writing externs for
    SHBrowseForFolderA
    (assuming windows)
  • n

    nutritious-australia-67366

    08/16/2022, 6:10 PM
    Yeah, that could be an option.
  • n

    nutritious-australia-67366

    08/16/2022, 6:11 PM
    It's not like I need to use openfl - what other options do I have if I want to go cross platform?
  • b

    bright-gpu-74537

    08/16/2022, 6:12 PM
    well, if you wanted a browse folder then your only option would be haxeui-hxwidgets, but a) that doesnt expose the dir dialog directly, so you would have to dip into hxwidgets and b) doesnt have a treeview (yet)
  • n

    nutritious-australia-67366

    08/16/2022, 6:37 PM
    If I went with OpenFl and decided to write an extern for SHBrowseForFolderA, how would I go about that?(maybe the wrong forum to ask this).
  • b

    bright-gpu-74537

    08/16/2022, 7:25 PM
    this seems to work:
  • b

    bright-gpu-74537

    08/16/2022, 7:25 PM
    keep in mind its just a test, so you likely want to clean it up a little and enhance it, but at a base level its a decent starting point
  • n

    nutritious-australia-67366

    08/16/2022, 7:35 PM
    Whoa! would never have figured that out myself
  • p

    powerful-morning-89

    08/16/2022, 7:38 PM
    Doesn't Lime have file dialog stuff?
  • b

    best-agent-85158

    08/16/2022, 7:44 PM
    it only provides file selection
  • b

    bright-gpu-74537

    08/16/2022, 7:45 PM
    well, its a little "bodgey" but it should at least start you off in the right sort of place
  • f

    future-iron-61487

    08/17/2022, 12:57 AM
    yeah windows has folder select but it's one of the worst dialogs created
  • f

    future-iron-61487

    08/17/2022, 12:57 AM
    nothing like the file select dialog
  • f

    future-iron-61487

    08/17/2022, 12:57 AM
    has that tiny tree view like I'm suddenly using windows 3.1 or something
  • e

    elegant-twilight-61392

    08/17/2022, 1:06 AM
    theres like 1 menu somewhere thats still from windows 3.1 like literally lmao
  • b

    bright-gpu-74537

    08/17/2022, 6:25 AM
    yeah, its defo pretty basic
  • b

    bright-gpu-74537

    08/17/2022, 6:26 AM
    there is
    BIF_NEWDIALOGSTYLE
    but it didnt seem to change much for me
  • b

    bright-gpu-74537

    08/17/2022, 6:27 AM
    in fact, this is it without the style:
1...121212131214...1687Latest