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

demonstrates the use of xtd::forms::panel container.

Windows

macOS

Gnome

#include <xtd/forms/application>
#include <xtd/forms/panel>
#include <xtd/forms/form>
using namespace xtd;
using namespace xtd::forms;
class form1 : public form {
public:
form1() {
text("Panel example");
location({200, 200});
client_size({640, 480});
panel1.parent(*this);
panel1.border_style(forms::border_style::fixed_single);
panel1.location({10, 10});
panel1.size({305, 460});
panel1.anchor(anchor_styles::top | anchor_styles::left | anchor_styles::bottom);
panel2.parent(*this);
panel2.border_style(forms::border_style::fixed_3d);
panel2.location({325, 10});
panel2.size({305, 460});
panel2.anchor(anchor_styles::top | anchor_styles::left | anchor_styles::bottom | anchor_styles::right);
}
private:
panel panel1;
panel panel2;
};
auto main() -> int {
application::run(form1 {});
}
Represents a window or dialog box that makes up an application's user interface.
Definition form.hpp:54
Used to group collections of controls.
Definition panel.hpp:32
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10