xtd 0.2.0
Loading...
Searching...
No Matches
xtd::forms::native::folder_browser_dialog Class Referencefinal
Inheritance diagram for xtd::forms::native::folder_browser_dialog:
xtd::static_object

Definition

Contains folder browser dialog native API.

Namespace
xtd::forms::native
Library
xtd.forms.native
Warning
Internal use only

Protected Static Methods

static bool run_dialog (intptr hwnd, const xtd::string &description, environment::special_folder root_folder, xtd::string &selected_path, size_t options)
 Shows dialog.
 
static void run_sheet (xtd::delegate< void(bool)> on_dialog_closed, intptr hwnd, const xtd::string &description, environment::special_folder root_folder, xtd::string &selected_path, size_t options)
 Shows async dialog as sheet.
 

Member Function Documentation

◆ run_dialog()

static bool xtd::forms::native::folder_browser_dialog::run_dialog ( intptr  hwnd,
const xtd::string description,
environment::special_folder  root_folder,
xtd::string selected_path,
size_t  options 
)
staticprotected

Shows dialog.

Parameters
hwndParent window handle.
descriptionThe description to display.
root_folderOne of the environment::special_folder values.
selected_pathThe path of the folder first selected in the dialog box or the last folder selected by the user.
optionsA bitwise folder browser dialog flags value.
Returns
true if the user clicks OK in the dialog box; otherwise, false.
Remarks
If result is true, the selected_path parameter contains the new selected path.
Warning
Internal use only

◆ run_sheet()

static void xtd::forms::native::folder_browser_dialog::run_sheet ( xtd::delegate< void(bool)>  on_dialog_closed,
intptr  hwnd,
const xtd::string description,
environment::special_folder  root_folder,
xtd::string selected_path,
size_t  options 
)
staticprotected

Shows async dialog as sheet.

Parameters
hwndParent window handle.
descriptionThe description to display.
root_folderOne of the environment::special_folder values.
selected_pathThe path of the folder first selected in the dialog box or the last folder selected by the user.
optionsA bitwise folder browser dialog flags value.
Returns
true if the user clicks OK in the dialog box; otherwise, false.
Remarks
When dialog closed and if result is true, the selected_path parameter contains the new selected path.
Warning
Internal use only

The documentation for this class was generated from the following file: