mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-27 18:25:27 +08:00
Fix ProgressAndAsync tutorial
This commit is contained in:
@@ -72,8 +72,8 @@
|
|||||||
progressBar.Position = progress;
|
progressBar.Position = progress;
|
||||||
}, -1);
|
}, -1);
|
||||||
});
|
});
|
||||||
textResult.Text = text;
|
textResult.LoadTextAndClearUndoRedo(text);
|
||||||
textResult.SetCaret({row:0 column:0}, {row:0 column:0});
|
textResult.SetFocused();
|
||||||
}
|
}
|
||||||
]]>
|
]]>
|
||||||
</ev.Clicked-eval>
|
</ev.Clicked-eval>
|
||||||
|
|||||||
@@ -241,8 +241,8 @@ Closures
|
|||||||
throw ::vl::Exception(::vl::__vwsn::This(::vl::__vwsn::This(__vwsn_co_result_.Obj())->GetFailure().Obj())->GetMessage());
|
throw ::vl::Exception(::vl::__vwsn::This(::vl::__vwsn::This(__vwsn_co_result_.Obj())->GetFailure().Obj())->GetMessage());
|
||||||
}
|
}
|
||||||
(__vwsn_co0_text = ::demo::IStringAsync::CastResult(::vl::__vwsn::This(__vwsn_co_result_.Obj())->GetResult()));
|
(__vwsn_co0_text = ::demo::IStringAsync::CastResult(::vl::__vwsn::This(__vwsn_co_result_.Obj())->GetResult()));
|
||||||
::vl::__vwsn::This(__vwsnthis_0->textResult)->SetText(__vwsn_co0_text);
|
::vl::__vwsn::This(__vwsnthis_0->textResult)->LoadTextAndClearUndoRedo(__vwsn_co0_text);
|
||||||
::vl::__vwsn::This(__vwsnthis_0->textResult)->SetCaret([&](){ ::vl::presentation::TextPos __vwsn_temp__; __vwsn_temp__.row = static_cast<::vl::vint>(0); __vwsn_temp__.column = static_cast<::vl::vint>(0); return __vwsn_temp__; }(), [&](){ ::vl::presentation::TextPos __vwsn_temp__; __vwsn_temp__.row = static_cast<::vl::vint>(0); __vwsn_temp__.column = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
|
::vl::__vwsn::This(__vwsnthis_0->textResult)->SetFocused();
|
||||||
this->SetStatus(::vl::reflection::description::CoroutineStatus::Stopped);
|
this->SetStatus(::vl::reflection::description::CoroutineStatus::Stopped);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user