The Save and Open file requesters in PB (on Windows at least) do not prompt the user to confirm overwriting a file. We have to do this manually, and while this works, it doesn't fit in with other programs, and looks a little unprofessional. OFN_OVERWRITEPROMPT is the flag on Windows, I believe. Could we also have a "flags" parameter for SaveFileRequester(), so that we may pass our own flags? OFN_FILEMUSTEXIST and OFN_PATHMUSTEXIST would be nice additions, too.
On OS X, all files are enabled by default. wilbert showed that the patterns can have an effect. Can this be added to PureBasic, please?
Thanks for considering this.
Save and open file requesters
Re: Save and open file requesters
Maybe I'm confused, but the requesters are only a comfortable way to prompt the user for a filename .... so it saves nothing or opens nothing on every os....
So you have to ask the user on every os to overwrite a file... With messagerequester and yes/no/cancel options its look like the same as the filerequesters...
So I don't understand this request. (I also not understand why there is an Open and a SaveFileRequester in PB... they do the same, so miss I something ?)
So you have to ask the user on every os to overwrite a file... With messagerequester and yes/no/cancel options its look like the same as the filerequesters...
So I don't understand this request. (I also not understand why there is an Open and a SaveFileRequester in PB... they do the same, so miss I something ?)
Re: Save and open file requesters
SaveFileRequester() doesn't allow the option for #PB_Requester_MultiSelection.Bisonte wrote:(I also not understand why there is an Open and a SaveFileRequester in PB... they do the same, so miss I something ?)
Re: Save and open file requesters
thx. That makes sense
but a simple flag... and an Open&SaveFRQ renamed to FileRequester 


Re: Save and open file requesters
On Windows, in most applications, if the file already exists, a dialog will popup asking the user if they want to overwrite it. This happens while the save requester is still open. In PureBasic, we have to ask the user after the save requester is closed, and then open another save requester if they choose not to overwrite the file.Bisonte wrote:So you have to ask the user on every os to overwrite a file... With messagerequester and yes/no/cancel options its look like the same as the filerequesters...

It's a small thing, I know, but it would be nice.
-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Save and open file requesters
I agree Wombats, looks more professional. It is possibly the case that the extra flags are not supported by PB because it's different or difficult on the other platforms.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: Save and open file requesters
Been requested twice before (2009 and 2012), both in December too!
http://www.purebasic.fr/english/viewtop ... =3&t=40424
And now in December 2013. Seems to be a recurring Christmas wish.
http://www.purebasic.fr/english/viewtop ... =3&t=40424
And now in December 2013. Seems to be a recurring Christmas wish.

I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
Re: Save and open file requesters
So it does. Maybe third time lucky?PB wrote:Been requested twice before (2009 and 2012), both in December too!
http://www.purebasic.fr/english/viewtop ... =3&t=40424
And now in December 2013. Seems to be a recurring Christmas wish.
