The following code example demonstrate the use of label control.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/xtd>
namespace examples {
class main_form : public form {
public:
main_form() {
text("Hello world (label)");
controls().push_back(label);
label.dock(dock_style::fill);
label.text("Hello, World!");
}
private:
};
}
int main() {
application::run(examples::main_form());
}
static const xtd::drawing::color green
Gets a system-defined color that has an ARGB value of 0xFF008000. This field is constant.
Definition: color.h:201
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