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

Definition

Contains input 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 &text, const xtd::string &message, xtd::string &value, int32 character_casting, bool multiline, bool use_system_password_char, bool word_wrap)
 Shows dialog.
 
static void run_sheet (xtd::delegate< void(bool)> on_dialog_closed, intptr hwnd, const xtd::string &text, const xtd::string &message, xtd::string &value, int32 character_casting, bool multiline, bool use_system_password_char, bool word_wrap)
 Shows async dialog as sheet.
 

Member Function Documentation

◆ run_dialog()

static bool xtd::forms::native::input_dialog::run_dialog ( intptr  hwnd,
const xtd::string text,
const xtd::string message,
xtd::string value,
int32  character_casting,
bool  multiline,
bool  use_system_password_char,
bool  word_wrap 
)
staticprotected

Shows dialog.

Parameters
hwndParent window handle.
textA xtd::string that specifies the caption title of dialog.
messageA xtd::string that specifies the invite message text to display.
valueA xtd::string that specifies the text to display.
character_castingCharacter casing values (0 : normal, 1 : upper, 2 : lower).
multilinetrue for multiline; otherwise false.
use_system_password_chartrue if use system password char; otherwise false.
word_wraptrue if word_wrap; otherwise false.
Returns
true if the user clicks OK in the dialog box; otherwise, false.
Remarks
If result is true, the font parameter contains the new font, and the color parameter contains the now color.
Warning
Internal use only

◆ run_sheet()

static void xtd::forms::native::input_dialog::run_sheet ( xtd::delegate< void(bool)>  on_dialog_closed,
intptr  hwnd,
const xtd::string text,
const xtd::string message,
xtd::string value,
int32  character_casting,
bool  multiline,
bool  use_system_password_char,
bool  word_wrap 
)
staticprotected

Shows async dialog as sheet.

Parameters
on_dialog_closeda dialog close delegate to call when the dialog is closed.
hwndParent window handle.
textA xtd::string that specifies the caption title of dialog.
messageA xtd::string that specifies the invite message text to display.
valueA xtd::string that specifies the text to display.
character_castingCharacter casing values (0 : normal, 1 : upper, 2 : lower).
multilinetrue for multiline; otherwise false.
use_system_password_chartrue if use system password char; otherwise false.
word_wraptrue if word_wrap; otherwise false.
Returns
true if the user clicks OK in the dialog box; otherwise, false.
Remarks
When dialog closed and if result is true, the value parameter contains the new string value.
Warning
Internal use only

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