Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to select a folder on dialog ? #56

Closed
tinycedar opened this issue Nov 3, 2014 · 2 comments
Closed

How to select a folder on dialog ? #56

tinycedar opened this issue Nov 3, 2014 · 2 comments

Comments

@tinycedar
Copy link

I can open a dialog and select a file by following code, but I cannot select a directory, could you please help me out ?

func fileSelected(filename string) {
    fmt.Println(filename)
}

func initGUI() {
    button := ui.NewButton("Button")
    button.OnClicked(func() {
        ui.OpenFile(window, fileSelected)
    })
}
@andlabs
Copy link
Owner

andlabs commented Nov 3, 2014

That will require a separate function (though the code would mostly be the same on GTK+ and Mac OS X, on Windows it has to use an entirely different function). I'll add that soon, hopefully.

@andlabs
Copy link
Owner

andlabs commented Mar 24, 2018

Replaced with andlabs/libui#314.

@andlabs andlabs closed this as completed Mar 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants