arsd icon indicating copy to clipboard operation
arsd copied to clipboard

[Minigui] - getOpenFileName/getSaveFileName

Open MrcSnm opened this issue 2 years ago • 4 comments

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

MrcSnm avatar Jun 24 '22 16:06 MrcSnm

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

adamdruppe avatar Jun 24 '22 16:06 adamdruppe

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

MrcSnm avatar Jun 24 '22 16:06 MrcSnm

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

adamdruppe avatar Jun 24 '22 16:06 adamdruppe

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

MrcSnm avatar Jun 24 '22 16:06 MrcSnm