Contains file dialog native API.
- Namespace
- xtd::forms::native
- Library
- xtd.forms.native
- Warning
- Internal use only
- Todo:
- Split file_dialog into open_file_dialog and save_file_dialog.
|
static bool | run_open_dialog (intptr hwnd, const xtd::string &default_ext, xtd::string &file_name, std::vector< xtd::string > &file_names, const xtd::string &filter, size_t filter_index, const xtd::string &initial_directory, size_t options, bool support_multi_dotted_extensions, const xtd::string &title) |
| Shows open file dialog.
|
|
static void | run_open_sheet (xtd::delegate< void(bool)> on_dialog_closed, intptr hwnd, const xtd::string &default_ext, xtd::string &file_name, std::vector< xtd::string > &file_names, const xtd::string &filter, size_t filter_index, const xtd::string &initial_directory, size_t options, bool support_multi_dotted_extensions, const xtd::string &title) |
| Shows async open file dialog as sheet.
|
|
static bool | run_save_dialog (intptr hwnd, const xtd::string &default_ext, xtd::string &file_name, std::vector< xtd::string > &file_names, const xtd::string &filter, size_t filter_index, const xtd::string &initial_directory, size_t options, bool support_multi_dotted_extensions, const xtd::string &title) |
| Shows save file dialog.
|
|
static void | run_save_sheet (xtd::delegate< void(bool)> on_dialog_closed, intptr hwnd, const xtd::string &default_ext, xtd::string &file_name, std::vector< xtd::string > &file_names, const xtd::string &filter, size_t filter_index, const xtd::string &initial_directory, size_t options, bool support_multi_dotted_extensions, const xtd::string &title) |
| Shows async save file dialog as sheet.
|
|
◆ run_open_dialog()
Shows open file dialog.
- Parameters
-
hwnd | Parent window handle. |
default_ext | The default file name extension. The returned string does not include the period. |
file_name | The file name selected in the file dialog box. |
file_names | An array of type string, containing the file names of all selected files in the dialog box. |
filter | The file filtering options available in the dialog box. |
filter_index | A value containing the index of the filter currently selected in the file dialog box. |
initial_directory | The initial directory displayed by the file dialog box. |
options | A bitwise file dialog flags value. |
support_multi_dotted_extensions | true if the dialog box supports multiple file name extensions; otherwise, false. The default is false. |
title | The file dialog box title. |
- Returns
- true if the user clicks OK in the dialog box; otherwise, false.
- Warning
- Internal use only
◆ run_open_sheet()
static void xtd::forms::native::file_dialog::run_open_sheet |
( |
xtd::delegate< void(bool)> |
on_dialog_closed, |
|
|
intptr |
hwnd, |
|
|
const xtd::string & |
default_ext, |
|
|
xtd::string & |
file_name, |
|
|
std::vector< xtd::string > & |
file_names, |
|
|
const xtd::string & |
filter, |
|
|
size_t |
filter_index, |
|
|
const xtd::string & |
initial_directory, |
|
|
size_t |
options, |
|
|
bool |
support_multi_dotted_extensions, |
|
|
const xtd::string & |
title |
|
) |
| |
|
staticprotected |
Shows async open file dialog as sheet.
- Parameters
-
on_dialog_closed | a dialog close delegate to call when the dialog is closed. |
hwnd | Parent window handle. |
default_ext | The default file name extension. The returned string does not include the period. |
file_name | The file name selected in the file dialog box. |
file_names | An array of type string, containing the file names of all selected files in the dialog box. |
filter | The file filtering options available in the dialog box. |
filter_index | A value containing the index of the filter currently selected in the file dialog box. |
initial_directory | The initial directory displayed by the file dialog box. |
options | A bitwise file dialog flags value. |
support_multi_dotted_extensions | true if the dialog box supports multiple file name extensions; otherwise, false. The default is false. |
title | The file dialog box title. |
- Returns
- true if the user clicks OK in the dialog box; otherwise, false.
- Warning
- Internal use only
◆ run_save_dialog()
Shows save file dialog.
- Parameters
-
hwnd | Parent window handle. |
default_ext | The default file name extension. The returned string does not include the period. |
file_name | The file name selected in the file dialog box. |
file_names | An array of type string, containing the file names of all selected files in the dialog box. |
filter | The file filtering options available in the dialog box. |
filter_index | A value containing the index of the filter currently selected in the file dialog box. |
initial_directory | The initial directory displayed by the file dialog box. |
options | A bitwise file dialog flags value. |
support_multi_dotted_extensions | true if the dialog box supports multiple file name extensions; otherwise, false. The default is false. |
title | The file dialog box title. |
- Returns
- true if the user clicks OK in the dialog box; otherwise, false.
- Warning
- Internal use only
◆ run_save_sheet()
static void xtd::forms::native::file_dialog::run_save_sheet |
( |
xtd::delegate< void(bool)> |
on_dialog_closed, |
|
|
intptr |
hwnd, |
|
|
const xtd::string & |
default_ext, |
|
|
xtd::string & |
file_name, |
|
|
std::vector< xtd::string > & |
file_names, |
|
|
const xtd::string & |
filter, |
|
|
size_t |
filter_index, |
|
|
const xtd::string & |
initial_directory, |
|
|
size_t |
options, |
|
|
bool |
support_multi_dotted_extensions, |
|
|
const xtd::string & |
title |
|
) |
| |
|
staticprotected |
Shows async save file dialog as sheet.
- Parameters
-
on_dialog_closed | a dialog close delegate to call when the dialog is closed. |
hwnd | Parent window handle. |
default_ext | The default file name extension. The returned string does not include the period. |
file_name | The file name selected in the file dialog box. |
file_names | An array of type string, containing the file names of all selected files in the dialog box. |
filter | The file filtering options available in the dialog box. |
filter_index | A value containing the index of the filter currently selected in the file dialog box. |
initial_directory | The initial directory displayed by the file dialog box. |
options | A bitwise file dialog flags value. |
support_multi_dotted_extensions | true if the dialog box supports multiple file name extensions; otherwise, false. The default is false. |
title | The file dialog box title. |
- Returns
- true if the user clicks OK in the dialog box; otherwise, false.
- Warning
- Internal use only
The documentation for this class was generated from the following file: