mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-31 13:55:26 +08:00
Upgrade Tutorial\GacUI_ControlTemplate
This commit is contained in:
@@ -19,9 +19,8 @@ void GuiMain()
|
|||||||
{
|
{
|
||||||
LoadDemoTypes();
|
LoadDemoTypes();
|
||||||
{
|
{
|
||||||
List<WString> errors;
|
|
||||||
FileStream fileStream(L"../UIRes/BlackSkin.bin", FileStream::ReadOnly);
|
FileStream fileStream(L"../UIRes/BlackSkin.bin", FileStream::ReadOnly);
|
||||||
auto resource = GuiResource::LoadPrecompiledBinary(fileStream, errors);
|
auto resource = GuiResource::LoadPrecompiledBinary(fileStream);
|
||||||
GetResourceManager()->SetResource(L"Resource", resource);
|
GetResourceManager()->SetResource(L"Resource", resource);
|
||||||
}
|
}
|
||||||
demo::MainWindow window;
|
demo::MainWindow window;
|
||||||
|
|||||||
@@ -24248,7 +24248,7 @@ namespace demo
|
|||||||
::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_204)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = 5; __vwsn_temp__.top = 5; __vwsn_temp__.right = 5; __vwsn_temp__.bottom = 5; return __vwsn_temp__; }());
|
::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_204)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = 5; __vwsn_temp__.top = 5; __vwsn_temp__.right = 5; __vwsn_temp__.bottom = 5; return __vwsn_temp__; }());
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_203)->SetText(::vl::WString(L"\r\n This is the first line of the multilined text.\r\n This is the second line of the multilined text.\r\n This is the third line of the multilined text.", false));
|
::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_203)->SetText(::vl::WString(L"This is the first line of the multilined text.\r\nThis is the second line of the multilined text.\r\nThis is the third line of the multilined text.", false));
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_202)->AddChild(static_cast<::vl::presentation::controls::GuiControl*>(::vl::__vwsn::This(this)->__vwsn_precompile_203));
|
::vl::__vwsn::This(::vl::__vwsn::This(this)->__vwsn_precompile_202)->AddChild(static_cast<::vl::presentation::controls::GuiControl*>(::vl::__vwsn::This(this)->__vwsn_precompile_203));
|
||||||
|
|||||||
Reference in New Issue
Block a user