The following code example demonstrate the use of panel container.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/xtd>
class form1 : public form {
public:
form1() {
text("Panel example");
client_size({640, 480});
panel1.parent(*this);
panel1.location({10, 10});
panel1.size({305, 460});
panel2.parent(*this);
panel2.location({325, 10});
panel2.size({305, 460});
}
private:
panel panel1;
panel panel2;
};
int main() {
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17