![]() |
nsDialogs::SelectFileDialog presents Messagebox asking to create the file.
Hi all,
i am using: nsDialogs::SelectFileDialog /NOUNLOAD open "$EXEDIR\License.xml" "XML Files|*.xml|All Files|*.*" to select a file named "License.xml" from a directory in case it exists there, but if the file does not exist it will present a dialog: "License.xml" "This file doesn't exist." "Create the file?! "Yes No" How can i prevent that dialog from showing in case the file i look for does not exist? Thanks x |
If you call GetOpenFilename directly with the system plugin you will get more control over which flags are used but I'm not sure if it makes any sense to do so, can't you just check if the file exists first?
Normally you would have a text field where the user can type anything they want and a browse button to display the open dialog... |
Thanks Anders, i did the check for the filename and now it works as it should.
:up: |
| All times are GMT. The time now is 17:44. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.