25 class application_context;
48 std::optional<std::reference_wrapper<ibutton_control>>
accept_button()
const {
return accept_button_;}
60 static std::optional<std::reference_wrapper<form>>
active_form() {
return active_form_;}
72 std::optional<std::reference_wrapper<ibutton_control>>
cancel_button()
const {
return cancel_button_;}
142 virtual std::optional<forms::main_menu>
menu()
const {
return menu_;}
162 bool modal()
const {
return get_state(state::modal);}
166 virtual std::optional<control_ref>
owner()
const {
return from_handle(owner_);}
172 using container_control::parent;
197 virtual bool top_level()
const {
return get_state(state::top_level);}
214 virtual double opacity()
const {
return opacity_;}
219 using container_control::visible;
322 std::optional<std::reference_wrapper<ibutton_control>> accept_button_;
323 std::optional<std::reference_wrapper<ibutton_control>> cancel_button_;
324 static std::optional<std::reference_wrapper<form>> active_form_;
325 bool close_box_ =
true;
326 bool control_box_ =
true;
329 bool help_button_ =
true;
331 bool maximize_box_ =
true;
332 std::optional<forms::main_menu> menu_;
333 bool minimize_box_ =
true;
334 std::shared_ptr<screen> previous_screen_;
335 bool show_icon_ =
true;
336 bool show_in_taskbar_ =
true;
343 bool can_close_ =
false;
344 bool top_most_ =
false;
346 void internal_set_window_state();
347 intptr_t parent_before_show_dialog_ = 0;
348 double opacity_ = 1.0;
Represents a Windows icon, which is a small bitmap image that is used to represent an object....
Definition: icon.h:22
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:25
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
Represents an event.
Definition: event.h:21
Specifies the contextual information about an application thread.
Definition: application_context.h:26
Represents the menu structure of a form.
Definition: main_menu.h:30
Contains xtd::forms::container_control class.
Contains xtd::forms::dialog_result enum class.
event< form, form_closing_event_handler > form_closing
Occurs before the form is closed.
Definition: form.h:282
event< form, form_closed_event_handler > form_closed
Occurs after the form is closed.
Definition: form.h:278
event< form, event_handler > activated
Occurs when the form is activated in code or by the user.
Definition: form.h:270
event< form, event_handler > deactivate
Occurs when the form loses focus and is no longer the active form.
Definition: form.h:274
#define forms_export_
Define shared library export.
Definition: forms_export.h:13
Contains xtd::drawing::icon class.
Contains xtd::forms::main_menu menu.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::io::path class.
Contains xtd::forms::screen component.