demonstrates the use of form event.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/forms/application>
#include <xtd/forms/form>
#include <xtd/forms/message_box>
auto main() -> int {
form.
text(
"Click anywhere on the form");
if (e.button() == mouse_buttons::left)
message_box::show(
form, string::format(
"The form is clicked at {}", e.location()),
"form_click");
};
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10