59 auto_repeat_timer_.tick += [&] {
60 auto_repeat_timer_.enabled(
false);
63 auto_repeat_timer_.interval_milliseconds(auto_repeat_interval_);
64 auto_repeat_timer_.enabled(auto_repeat_);
76 if (auto_repeat_ != auto_repeat) {
77 auto_repeat_ = auto_repeat;
78 if (!auto_repeat_) auto_repeat_timer_.
enabled(
false);
90 if (auto_repeat_delay_ != auto_repeat_delay)
91 auto_repeat_delay_ = auto_repeat_delay;
102 if (auto_repeat_interval_ != auto_repeat_interval)
103 auto_repeat_interval_ = auto_repeat_interval;
130 button_base::on_enabled_changed(
e);
138 auto_repeat_timer_.interval_milliseconds(auto_repeat_delay_);
139 auto_repeat_timer_.enabled(auto_repeat_);
141 button_base::on_mouse_down(
e);
146 button_base::on_mouse_enter(
e);
151 button_base::on_mouse_leave(
e);
155 auto_repeat_timer_.enabled(
false);
157 button_base::on_mouse_up(
e);
174 bool auto_repeat_ =
false;
175 timer auto_repeat_timer_;
176 int32_t auto_repeat_delay_ = 300;
177 int32_t auto_repeat_interval_ = 100;
178 bool default_button_ =
false;
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::dialog_result enum class.
Contains xtd::environment class.
#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
Contains xtd::forms::timer component.