26 size_ = default_size();
51 virtual int min_size()
const {
return min_size_;}
56 if (min_size_ != min_size) {
83 if (parent().has_value()) {
84 for(
size_t index = 0; index < parent().value().get().controls().size(); index++) {
85 if (parent().value().get().controls()[index].get() == *
this) {
86 if (index > 0) previous_control_cursor_ = (previous_control_ = &parent().value().get().controls()[index - 1].get())->
cursor();
87 if (index < parent().value().get().controls().size() -1) next_control_cursor_ = (next_control_ = &parent().value().get().controls()[index + 1].get())->
cursor();
92 if (previous_control_) previous_control_->
cursor(default_cursor());
93 if (next_control_) next_control_->cursor(default_cursor());
98 if (previous_control_) previous_control_->cursor(default_cursor());
99 if (next_control_) next_control_->cursor(default_cursor());
100 if (mouse_down_location != -1 && next_control_) {
105 int new_size = delta_size - mouse_down_location;
106 if (new_size < min_size_) new_size = min_size_;
109 else next_control_->height(new_size);
117 if (previous_control_) previous_control_->cursor(previous_control_cursor_);
118 if (next_control_) next_control_->cursor(previous_control_cursor_);
119 if (mouse_down_location != -1 && parent().has_value() && next_control_) {
121 if (new_size < min_size_) new_size = min_size_;
123 else next_control_->height(new_size);
124 mouse_down_location = -1;
126 previous_control_ =
nullptr;
127 next_control_ =
nullptr;
135 bool default_width_ =
true;
139 int mouse_down_location = -1;
143 control* previous_control_ =
nullptr;
144 control* next_control_ =
nullptr;
Contains xtd::argument_exception exception.
The exception that is thrown when one of the arguments provided to a method is not valid.
Definition: argument_exception.h:19
int32_t y() const
Gets the y-coordinate of this point.
Definition: point.h:205
int32_t x() const
Gets the x-coordinate of this point.
Definition: point.h:159
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.
virtual void on_mouse_up(const mouse_event_args &e)
Raises the control::mouse_up event.
virtual void on_handle_created(const event_args &e)
Raises the control::handle_created event.
virtual void on_mouse_down(const mouse_event_args &e)
Raises the control::mouse_down event.
virtual void on_mouse_move(const mouse_event_args &e)
Raises the control::mouse_move event.
#define forms_export_
Define shared library export.
Definition: forms_export.h:13
#define current_stack_frame_
Provides information about the current stack frame.
Definition: stack_frame.h:201
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::forms::splitter_style enum class.