The Help file has some basic information about the FileSaveBox & FileOpenBox commands but doesn't really indicate any multiple file mask options. When file masks are implemented according to the help file, the drop down box on the File Open and file Save dialogs will only have one (1) file extension type listed. However there may be times you wish to allow the user to select from one of multiple file types/extensions, i.e. image file extentions .jpg, .png, or .bmp. So after doing a little trial and error here is what I came up with; you can mask the selection to multiple extension by seperating the extensions with a semicolon ( ; ). Also to add additional selection options to the drop down box at the bottom of the File open and Save dialog boxes, use a another pipe charactor (|) and enter another selection option following it. Here are a few examples, try them out:
Code: Select all
FileSaveBox "Select Desktop Background File" "Image File (*.bmp, *.gif, *.jpg, *.png, *.tif)|*.bmp;*.gif;*.jpg;*.png;*.tif|PNG File (*.png)|*.png|Jpeg File (*jpg)|*.jpg|Text File (*.txt, *.rtf)|*.txt;*.rtf|Any File|*.*" "" "[filesave]"
Code: Select all
FileOpenBox "Select Desktop Background File" "Image File (*.bmp, *.gif, *.jpg, *.png, *.tif)|*.bmp;*.gif;*.jpg;*.png;*.tif|PNG File (*.png)|*.png|Jpeg File (*jpg)|*.jpg|Text File (*.txt, *.rtf)|*.txt;*.rtf|Any File|*.*" "" "[fileopen]" ""
Good luck!