xtd 0.2.0
Loading...
Searching...
No Matches
form_click.cpp

demonstrates the use of form event.

Windows

macOS

Gnome

#include <xtd/xtd>
auto main() -> int {
form form;
form.text("Click anywhere on the form");
form.mouse_click += delegate_(object& sender, const mouse_event_args& e) {
if (e.button() == mouse_buttons::left)
message_box::show(form, string::format("The form is clicked at {}", e.location()), "form_click");
};
application::run(form);
}
#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