The following code example demonstrate the use of xtd::forms::application and xtd::forms::application_context classes.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/xtd>
int main() {
};
form1.
text(
"Form 1 (Click the client area to set form as the main form)");
};
form2.
text(
"Form 2 (Click the client area to set form as the main form)");
};
form3.
text(
"Form 3 (Click the client area to set form as the main form)");
application::run(context);
}
Specifies the contextual information about an application thread.
Definition application_context.h:26
const form & main_form() const
Gets the form to use as context.
Definition application_context.h:44
event< control, event_handler > click
Occurs when the control is clicked.
Definition control.h:1065