demonstrates the use of xtd::forms::input_dialog dialog.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/xtd>
namespace input_dialog_password_example {
class form1 : public form {
public:
form1() {
text("Input dialog password example");
controls().push_back_range({button1, label1});
button1.location({10, 10});
button1.auto_size(true);
button1.text("Password...");
input_dialog input_dialog;
input_dialog.text("User password");
input_dialog.message("user: admin");
input_dialog.use_system_password_char(true);
input_dialog.value(label1.text());
if (input_dialog.show_sheet_dialog(*this) == dialog_result::ok)
label1.text(input_dialog.value());
};
label1.location({10, 50});
label1.auto_size(true);
label1.text("sysad47@74dasys");
}
private:
button button1;
label label1;
};
}
auto main() -> int {
application::run(input_dialog_password_example::form1 {});
}
#define delegate_
The declaration of a delegate type is similar to a method signature. It has a return value and any nu...
Definition delegate.hpp:900