demonstrates the use of xtd::forms::panel.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/forms/application>
#include <xtd/forms/form>
#include <xtd/forms/panel>
namespace auto_scroll_example {
class form1 :
public form {
public:
form1() {
auto_scroll(true);
controls().push_back_range({panel5, panel4, panel3, panel2, panel1});
text("Auto scroll example");
panel1.border_style(border_style::fixed_single).back_color(color::light_green).dock(dock_style::top);
panel2.border_style(border_style::fixed_single).back_color(color::light_pink).dock(dock_style::top);
panel3.border_style(border_style::fixed_single).back_color(color::light_blue).dock(dock_style::top);
panel4.border_style(border_style::fixed_single).back_color(color::light_yellow).dock(dock_style::top);
panel5.border_style(border_style::fixed_single).back_color(color::light_salmon).dock(dock_style::top);
}
private:
};
}
auto main() -> int {
application::run(auto_scroll_example::form1 {});
}
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:31
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition brush.hpp:18