Construct the dialog.
Construct the dialog.
Add an allowed file type. If a filetype combobox exists in the file dialog on the particular platform, this adds entries to it. When the user choose a filetype in the combobox, only the files of that type are listed. If no types are added or if the filetypes combobox is not supported by the particular platform then all files are listed regardless of their types.
Set the default extension.
Set the initial directory in the dialog.
Set the initial file in the dialog.
Get the dialog result. This varies on the type of dialog used and will reflect the overall result expected of each dialog.
Remove any leading or trailing braces.
Show the dialog.
Pops up a dialog box for the user to select a color.