33 using std::chrono::milliseconds;
42 return String(
to_string(pr.first) +
": ") + pr.second;
50 lblAreaUp({20, 12, 216, 72}),
lblAreaDown({20, 108, 216, 72}),
64 const auto set_font_size([
this](
FontSize size){
65 lblAreaUp.Font.SetSize(size),
88 FetchEvent<KeyDown>(*
this) += OnEvent_StopRouting<KeyEventArgs>,
89 FetchEvent<KeyHeld>(*
this) += OnEvent_StopRouting<KeyEventArgs>,
91 += [
this, set_font_size](TouchEventArgs&&){
92 auto size(lblAreaUp.Font.GetSize());
95 set_font_size(--size);
98 += [
this, set_font_size](TouchEventArgs&&){
99 auto size(lblAreaUp.Font.GetSize());
102 set_font_size(++size);
104 FetchEvent<Click>(
btnTextColor) += [
this](TouchEventArgs&&){
108 FetchEvent<Click>(
btnSetUpBack) += [
this](TouchEventArgs&&){
110 = &lblAreaUp.Background.target<SolidBrush>()->Color));
115 = &
lblAreaDown.Background.target<SolidBrush>()->Color));
122 lblAreaUp.Font = Font(*p, lblAreaUp.Font.GetSize());
136 static yconstexpr auto fetch_scroll_durations([](
bool is_smooth)
138 const auto postfix(is_smooth ? u
"毫秒/像素行" : u
"毫秒/文本行");
139 auto& lst(*
new TextList::ListType(20U));
140 const u16 delta(is_smooth ? 10 : 100);
143 std::generate(lst.begin(), lst.end(), [&, is_smooth, delta]{
144 return String(
to_string(t += delta)) + postfix;
150 fetch_scroll_durations,
true) : get_init<false>(
151 fetch_scroll_durations,
false));
164 FetchEvent<Click>(
boxColor.btnOK) += [
this](TouchEventArgs&&){