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

[Minigui] - getOpenFileName/getSaveFileName #332

Open
MrcSnm opened this issue Jun 24, 2022 · 4 comments
Open

[Minigui] - getOpenFileName/getSaveFileName #332

MrcSnm opened this issue Jun 24, 2022 · 4 comments

Comments

@MrcSnm
Copy link
Contributor

MrcSnm commented Jun 24, 2022

I think they're missing 2 things:

  1. Argument for the window title
  2. The void delegate(string path) for the OK could be a bool delegate, returning true/false or adding another function for validating the input before the window is actually closed
@adamdruppe
Copy link
Owner

I don't think Windows supports that bool delegate thing...

@MrcSnm
Copy link
Contributor Author

MrcSnm commented Jun 24, 2022

Humm you sure? I have seen a lot of times dialogs which could show a message box when selecting invalid things and it would back to selecting the thing.

Btw forgot to ask too:

getOpenFolderName when

@adamdruppe
Copy link
Owner

That's done in the void delegate - you can display the mesasge box there then call getOpenFileName again

@MrcSnm
Copy link
Contributor Author

MrcSnm commented Jun 24, 2022

Humm usually I saw them showing without closing the window, but that's ok for now

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