27 if (auto_scroll_ != auto_scroll) {
28 auto_scroll_ = auto_scroll;
41 if (auto_scroll_margin_ != value) {
42 auto_scroll_margin_ = value;
54 virtual bool h_scroll()
const {
return h_scroll_;}
59 if (h_scroll_ != h_scroll) {
68 virtual bool v_scroll()
const {
return v_scroll_;}
73 if (v_scroll_ != v_scroll) {
87 control::on_layout(
e);
89 display_rectangle_ = client_rectangle_;
90 display_rectangle_.height(display_rectangle_.height() - system_information::horizontal_scroll_bar_height());
91 display_rectangle_.width(display_rectangle_.width() - system_information::vertical_scroll_bar_width());
92 for (
auto item : controls()) {
93 if (item.get().visible())
94 display_rectangle_ = drawing::rectangle::make_union(display_rectangle_, item.get().bounds());
96 display_rectangle_.width(display_rectangle_.width() + auto_scroll_margin_.width());
97 display_rectangle_.height(display_rectangle_.height() + auto_scroll_margin_.height());
102 bool auto_scroll_ =
false;
103 bool h_scroll_ =
false;
104 bool v_scroll_ =
false;
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.h:25
Stores an ordered pair of integers, which specify a height and width.
Definition size.h:25
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18
Contains xtd::forms::control control.
#define forms_export_
Define shared library export.
Definition forms_export.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17