xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
label.cpp

The following code example demonstrate the use of label control.

Windows

macOS

Gnome

#include <xtd/xtd>
using namespace xtd::forms;
namespace examples {
class form1 : public form {
public:
form1() {
text("Label example");
label1.parent(*this);
label1.text("Label 1");
label1.location({10, 10});
}
private:
label label1;
};
}
int main() {
application::run(examples::form1());
}
Represents a window or dialog box that makes up an application's user interface.
Definition: form.h:40
Represents a standard Windows label.
Definition: label.h:26
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13