The following code example demonstrate the use of control control.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/xtd>
namespace examples {
class form1 : public form {
public:
form1() {
text("Control example");
control1.parent(*this);
control1.cursor(cursors::hand());
control1.location({50, 50});
control1.size({100, 50});
control1.click += [&] {
};
}
private:
};
}
int main() {
application::run(examples::form1());
}
static xtd::drawing::color spring_green()
A system-defined color object.
static xtd::drawing::color orange_red()
A system-defined color object.
@ control
The left or right CTRL modifier key.
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition: bitmap.h:11
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17