demonstrates the use of form event.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/forms/application>
#include <xtd/forms/form>
auto main() -> int {
auto main_form = form::create("Move form");
auto mouse_location = point::empty;
mouse_location = e.location();
main_form.cursor(cursors::no_move_2d());
};
mouse_location = point::empty;
main_form.cursor(cursors::default_cursor());
};
if (mouse_location != point::empty) main_form.location(main_form.location() + e.location() - mouse_location);
};
application::run(main_form);
}
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition brush.h:18
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10