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

demonstrates the use of xtd::forms::tool_bar component.

Windows

macOS

Gnome

#include <xtd/xtd>
namespace status_bar_without_panels_example {
class form1 : public form {
public:
form1() {
size({400, 250});
text("Status bar without panels example");
mouse_click += delegate_(object& sender, const mouse_event_args& e) {
status_bar1.text(string::format("Mouse click at location : {}", e.location()));
};
status_bar1.parent(*this);
status_bar1.back_color(drawing::system_colors::control());
status_bar1.text("Click anywhere on the client form...");
}
private:
forms::status_bar status_bar1;
};
}
auto main() -> int {
application::run(status_bar_without_panels_example::form1 {});
}
#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