|
|
|
@@ -8,6 +8,12 @@ https://github.com/vczh-libraries
|
|
|
|
|
***********************************************************************/
|
|
|
|
|
|
|
|
|
|
#include "Demo.h"
|
|
|
|
|
/* CodePack:BeginIgnore() */
|
|
|
|
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
|
|
|
|
/* CodePack:ConditionOff(VCZH_DEBUG_NO_REFLECTION, DemoReflection.h) */
|
|
|
|
|
#include "DemoReflection.h"
|
|
|
|
|
#endif
|
|
|
|
|
/* CodePack:EndIgnore() */
|
|
|
|
|
|
|
|
|
|
#if defined( _MSC_VER)
|
|
|
|
|
#pragma warning(push)
|
|
|
|
@@ -61,7 +67,7 @@ Closures
|
|
|
|
|
{
|
|
|
|
|
auto a = ::vl::__vwsn::This(__vwsnthis_0->textBoxA)->GetText();
|
|
|
|
|
auto b = ::vl::__vwsn::This(__vwsnthis_0->textBoxB)->GetText();
|
|
|
|
|
auto c = [&](){ try{ return ::vl::__vwsn::ToString((::vl::__vwsn::Parse<::vl::vint32_t>(a) + ::vl::__vwsn::Parse<::vl::vint32_t>(b))); } catch(...){ return ::vl::WString(L"<ERROR>", false); } }();
|
|
|
|
|
auto c = [&](){ try{ return ::vl::__vwsn::ToString((::vl::__vwsn::Parse<::vl::vint>(a) + ::vl::__vwsn::Parse<::vl::vint>(b))); } catch(...){ return ::vl::WString(L"<ERROR>", false); } }();
|
|
|
|
|
::vl::__vwsn::This(__vwsnthis_0->textBoxC)->SetText(c);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@@ -77,41 +83,41 @@ namespace demo
|
|
|
|
|
(this->__vwsn_precompile_0 = __vwsn_this_);
|
|
|
|
|
(this->__vwsn_precompile_17 = ::vl::__vwsn::This(this->__vwsn_precompile_0)->GetBoundsComposition());
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_17)->SetPreferredMinSize([&](){ ::vl::presentation::Size __vwsn_temp__; __vwsn_temp__.x = static_cast<::vl::vint32_t>(480); __vwsn_temp__.y = static_cast<::vl::vint32_t>(320); return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_17)->SetPreferredMinSize([&](){ ::vl::presentation::Size __vwsn_temp__; __vwsn_temp__.x = static_cast<::vl::vint>(480); __vwsn_temp__.y = static_cast<::vl::vint>(320); return __vwsn_temp__; }());
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetClientSize([&](){ ::vl::presentation::Size __vwsn_temp__; __vwsn_temp__.x = static_cast<::vl::vint32_t>(480); __vwsn_temp__.y = static_cast<::vl::vint32_t>(320); return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetClientSize([&](){ ::vl::presentation::Size __vwsn_temp__; __vwsn_temp__.x = static_cast<::vl::vint>(480); __vwsn_temp__.y = static_cast<::vl::vint>(320); return __vwsn_temp__; }());
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_0)->SetText(::vl::WString(L"Event_Script", false));
|
|
|
|
|
}
|
|
|
|
|
(this->__vwsn_precompile_1 = new ::vl::presentation::compositions::GuiTableComposition());
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint32_t>(0); __vwsn_temp__.top = static_cast<::vl::vint32_t>(0); __vwsn_temp__.right = static_cast<::vl::vint32_t>(0); __vwsn_temp__.bottom = static_cast<::vl::vint32_t>(0); return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetMinSizeLimitation(::vl::presentation::compositions::GuiGraphicsComposition::MinSizeLimitation::LimitToElementAndChildren);
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetCellPadding(::vl::__vwsn::Parse<::vl::vint32_t>(::vl::WString(L"5", false)));
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetCellPadding(::vl::__vwsn::Parse<::vl::vint>(::vl::WString(L"5", false)));
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetRowsAndColumns(static_cast<::vl::vint32_t>(4), static_cast<::vl::vint32_t>(4));
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetRowOption(static_cast<::vl::vint32_t>(0), [&](){ ::vl::presentation::compositions::GuiCellOption __vwsn_temp__; __vwsn_temp__.composeType = ::vl::presentation::compositions::GuiCellOption::ComposeType::MinSize; return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetRowOption(static_cast<::vl::vint32_t>(1), [&](){ ::vl::presentation::compositions::GuiCellOption __vwsn_temp__; __vwsn_temp__.composeType = ::vl::presentation::compositions::GuiCellOption::ComposeType::MinSize; return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetRowOption(static_cast<::vl::vint32_t>(2), [&](){ ::vl::presentation::compositions::GuiCellOption __vwsn_temp__; __vwsn_temp__.composeType = ::vl::presentation::compositions::GuiCellOption::ComposeType::MinSize; return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetRowOption(static_cast<::vl::vint32_t>(3), [&](){ ::vl::presentation::compositions::GuiCellOption __vwsn_temp__; __vwsn_temp__.composeType = ::vl::presentation::compositions::GuiCellOption::ComposeType::Percentage; __vwsn_temp__.percentage = static_cast<double>(1.0); return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetColumnOption(static_cast<::vl::vint32_t>(0), [&](){ ::vl::presentation::compositions::GuiCellOption __vwsn_temp__; __vwsn_temp__.composeType = ::vl::presentation::compositions::GuiCellOption::ComposeType::MinSize; return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetColumnOption(static_cast<::vl::vint32_t>(1), [&](){ ::vl::presentation::compositions::GuiCellOption __vwsn_temp__; __vwsn_temp__.composeType = ::vl::presentation::compositions::GuiCellOption::ComposeType::Absolute; __vwsn_temp__.absolute = static_cast<::vl::vint32_t>(100); return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetColumnOption(static_cast<::vl::vint32_t>(2), [&](){ ::vl::presentation::compositions::GuiCellOption __vwsn_temp__; __vwsn_temp__.composeType = ::vl::presentation::compositions::GuiCellOption::ComposeType::MinSize; return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetColumnOption(static_cast<::vl::vint32_t>(3), [&](){ ::vl::presentation::compositions::GuiCellOption __vwsn_temp__; __vwsn_temp__.composeType = ::vl::presentation::compositions::GuiCellOption::ComposeType::Percentage; __vwsn_temp__.percentage = static_cast<double>(1.0); return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetRowsAndColumns(static_cast<::vl::vint>(4), static_cast<::vl::vint>(4));
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetRowOption(static_cast<::vl::vint>(0), [&](){ ::vl::presentation::compositions::GuiCellOption __vwsn_temp__; __vwsn_temp__.composeType = ::vl::presentation::compositions::GuiCellOption::ComposeType::MinSize; return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetRowOption(static_cast<::vl::vint>(1), [&](){ ::vl::presentation::compositions::GuiCellOption __vwsn_temp__; __vwsn_temp__.composeType = ::vl::presentation::compositions::GuiCellOption::ComposeType::MinSize; return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetRowOption(static_cast<::vl::vint>(2), [&](){ ::vl::presentation::compositions::GuiCellOption __vwsn_temp__; __vwsn_temp__.composeType = ::vl::presentation::compositions::GuiCellOption::ComposeType::MinSize; return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetRowOption(static_cast<::vl::vint>(3), [&](){ ::vl::presentation::compositions::GuiCellOption __vwsn_temp__; __vwsn_temp__.composeType = ::vl::presentation::compositions::GuiCellOption::ComposeType::Percentage; __vwsn_temp__.percentage = static_cast<double>(1.0); return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetColumnOption(static_cast<::vl::vint>(0), [&](){ ::vl::presentation::compositions::GuiCellOption __vwsn_temp__; __vwsn_temp__.composeType = ::vl::presentation::compositions::GuiCellOption::ComposeType::MinSize; return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetColumnOption(static_cast<::vl::vint>(1), [&](){ ::vl::presentation::compositions::GuiCellOption __vwsn_temp__; __vwsn_temp__.composeType = ::vl::presentation::compositions::GuiCellOption::ComposeType::Absolute; __vwsn_temp__.absolute = static_cast<::vl::vint>(100); return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetColumnOption(static_cast<::vl::vint>(2), [&](){ ::vl::presentation::compositions::GuiCellOption __vwsn_temp__; __vwsn_temp__.composeType = ::vl::presentation::compositions::GuiCellOption::ComposeType::MinSize; return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_1)->SetColumnOption(static_cast<::vl::vint>(3), [&](){ ::vl::presentation::compositions::GuiCellOption __vwsn_temp__; __vwsn_temp__.composeType = ::vl::presentation::compositions::GuiCellOption::ComposeType::Percentage; __vwsn_temp__.percentage = static_cast<double>(1.0); return __vwsn_temp__; }());
|
|
|
|
|
}
|
|
|
|
|
(this->__vwsn_precompile_2 = new ::vl::presentation::compositions::GuiCellComposition());
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_2)->SetInternalMargin([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint32_t>(0); __vwsn_temp__.top = static_cast<::vl::vint32_t>(5); __vwsn_temp__.right = static_cast<::vl::vint32_t>(0); __vwsn_temp__.bottom = static_cast<::vl::vint32_t>(5); return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_2)->SetInternalMargin([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(5); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(5); return __vwsn_temp__; }());
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_2)->SetSite(static_cast<::vl::vint32_t>(0), static_cast<::vl::vint32_t>(0), static_cast<::vl::vint32_t>(1), static_cast<::vl::vint32_t>(1));
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_2)->SetSite(static_cast<::vl::vint>(0), static_cast<::vl::vint>(0), static_cast<::vl::vint>(1), static_cast<::vl::vint>(1));
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
auto __vwsn_controlStyle_ = ::vl::__vwsn::This(::vl::presentation::theme::GetCurrentTheme())->CreateLabelStyle();
|
|
|
|
@@ -128,7 +134,7 @@ namespace demo
|
|
|
|
|
}
|
|
|
|
|
(this->__vwsn_precompile_4 = new ::vl::presentation::compositions::GuiCellComposition());
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_4)->SetSite(static_cast<::vl::vint32_t>(0), static_cast<::vl::vint32_t>(1), static_cast<::vl::vint32_t>(1), static_cast<::vl::vint32_t>(2));
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_4)->SetSite(static_cast<::vl::vint>(0), static_cast<::vl::vint>(1), static_cast<::vl::vint>(1), static_cast<::vl::vint>(2));
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
auto __vwsn_controlStyle_ = ::vl::__vwsn::This(::vl::presentation::theme::GetCurrentTheme())->CreateTextBoxStyle();
|
|
|
|
@@ -136,7 +142,7 @@ namespace demo
|
|
|
|
|
}
|
|
|
|
|
(this->__vwsn_precompile_5 = ::vl::__vwsn::This(this->textBoxA)->GetBoundsComposition());
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_5)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint32_t>(0); __vwsn_temp__.top = static_cast<::vl::vint32_t>(0); __vwsn_temp__.right = static_cast<::vl::vint32_t>(0); __vwsn_temp__.bottom = static_cast<::vl::vint32_t>(0); return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_5)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->textBoxA)->SetText(::vl::WString(L"1", false));
|
|
|
|
@@ -149,10 +155,10 @@ namespace demo
|
|
|
|
|
}
|
|
|
|
|
(this->__vwsn_precompile_6 = new ::vl::presentation::compositions::GuiCellComposition());
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_6)->SetInternalMargin([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint32_t>(0); __vwsn_temp__.top = static_cast<::vl::vint32_t>(5); __vwsn_temp__.right = static_cast<::vl::vint32_t>(0); __vwsn_temp__.bottom = static_cast<::vl::vint32_t>(5); return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_6)->SetInternalMargin([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(5); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(5); return __vwsn_temp__; }());
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_6)->SetSite(static_cast<::vl::vint32_t>(1), static_cast<::vl::vint32_t>(0), static_cast<::vl::vint32_t>(1), static_cast<::vl::vint32_t>(1));
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_6)->SetSite(static_cast<::vl::vint>(1), static_cast<::vl::vint>(0), static_cast<::vl::vint>(1), static_cast<::vl::vint>(1));
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
auto __vwsn_controlStyle_ = ::vl::__vwsn::This(::vl::presentation::theme::GetCurrentTheme())->CreateLabelStyle();
|
|
|
|
@@ -169,7 +175,7 @@ namespace demo
|
|
|
|
|
}
|
|
|
|
|
(this->__vwsn_precompile_8 = new ::vl::presentation::compositions::GuiCellComposition());
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_8)->SetSite(static_cast<::vl::vint32_t>(1), static_cast<::vl::vint32_t>(1), static_cast<::vl::vint32_t>(1), static_cast<::vl::vint32_t>(2));
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_8)->SetSite(static_cast<::vl::vint>(1), static_cast<::vl::vint>(1), static_cast<::vl::vint>(1), static_cast<::vl::vint>(2));
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
auto __vwsn_controlStyle_ = ::vl::__vwsn::This(::vl::presentation::theme::GetCurrentTheme())->CreateTextBoxStyle();
|
|
|
|
@@ -177,7 +183,7 @@ namespace demo
|
|
|
|
|
}
|
|
|
|
|
(this->__vwsn_precompile_9 = ::vl::__vwsn::This(this->textBoxB)->GetBoundsComposition());
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_9)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint32_t>(0); __vwsn_temp__.top = static_cast<::vl::vint32_t>(0); __vwsn_temp__.right = static_cast<::vl::vint32_t>(0); __vwsn_temp__.bottom = static_cast<::vl::vint32_t>(0); return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_9)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->textBoxB)->SetText(::vl::WString(L"2", false));
|
|
|
|
@@ -190,10 +196,10 @@ namespace demo
|
|
|
|
|
}
|
|
|
|
|
(this->__vwsn_precompile_10 = new ::vl::presentation::compositions::GuiCellComposition());
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_10)->SetInternalMargin([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint32_t>(0); __vwsn_temp__.top = static_cast<::vl::vint32_t>(5); __vwsn_temp__.right = static_cast<::vl::vint32_t>(0); __vwsn_temp__.bottom = static_cast<::vl::vint32_t>(5); return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_10)->SetInternalMargin([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(5); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(5); return __vwsn_temp__; }());
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_10)->SetSite(static_cast<::vl::vint32_t>(2), static_cast<::vl::vint32_t>(0), static_cast<::vl::vint32_t>(1), static_cast<::vl::vint32_t>(1));
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_10)->SetSite(static_cast<::vl::vint>(2), static_cast<::vl::vint>(0), static_cast<::vl::vint>(1), static_cast<::vl::vint>(1));
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
auto __vwsn_controlStyle_ = ::vl::__vwsn::This(::vl::presentation::theme::GetCurrentTheme())->CreateLabelStyle();
|
|
|
|
@@ -210,7 +216,7 @@ namespace demo
|
|
|
|
|
}
|
|
|
|
|
(this->__vwsn_precompile_12 = new ::vl::presentation::compositions::GuiCellComposition());
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_12)->SetSite(static_cast<::vl::vint32_t>(2), static_cast<::vl::vint32_t>(1), static_cast<::vl::vint32_t>(1), static_cast<::vl::vint32_t>(1));
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_12)->SetSite(static_cast<::vl::vint>(2), static_cast<::vl::vint>(1), static_cast<::vl::vint>(1), static_cast<::vl::vint>(1));
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
auto __vwsn_controlStyle_ = ::vl::__vwsn::This(::vl::presentation::theme::GetCurrentTheme())->CreateTextBoxStyle();
|
|
|
|
@@ -221,7 +227,7 @@ namespace demo
|
|
|
|
|
}
|
|
|
|
|
(this->__vwsn_precompile_13 = ::vl::__vwsn::This(this->textBoxC)->GetBoundsComposition());
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_13)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint32_t>(0); __vwsn_temp__.top = static_cast<::vl::vint32_t>(0); __vwsn_temp__.right = static_cast<::vl::vint32_t>(0); __vwsn_temp__.bottom = static_cast<::vl::vint32_t>(0); return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_13)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_12)->AddChild(static_cast<::vl::presentation::compositions::GuiGraphicsComposition*>(::vl::__vwsn::This(this->textBoxC)->GetBoundsComposition()));
|
|
|
|
@@ -231,7 +237,7 @@ namespace demo
|
|
|
|
|
}
|
|
|
|
|
(this->__vwsn_precompile_14 = new ::vl::presentation::compositions::GuiCellComposition());
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_14)->SetSite(static_cast<::vl::vint32_t>(2), static_cast<::vl::vint32_t>(2), static_cast<::vl::vint32_t>(1), static_cast<::vl::vint32_t>(1));
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_14)->SetSite(static_cast<::vl::vint>(2), static_cast<::vl::vint>(2), static_cast<::vl::vint>(1), static_cast<::vl::vint>(1));
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
auto __vwsn_controlStyle_ = ::vl::__vwsn::This(::vl::presentation::theme::GetCurrentTheme())->CreateButtonStyle();
|
|
|
|
@@ -239,7 +245,7 @@ namespace demo
|
|
|
|
|
}
|
|
|
|
|
(this->__vwsn_precompile_16 = ::vl::__vwsn::This(this->__vwsn_precompile_15)->GetBoundsComposition());
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_16)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint32_t>(0); __vwsn_temp__.top = static_cast<::vl::vint32_t>(0); __vwsn_temp__.right = static_cast<::vl::vint32_t>(0); __vwsn_temp__.bottom = static_cast<::vl::vint32_t>(0); return __vwsn_temp__; }());
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_16)->SetAlignmentToParent([&](){ ::vl::presentation::Margin __vwsn_temp__; __vwsn_temp__.left = static_cast<::vl::vint>(0); __vwsn_temp__.top = static_cast<::vl::vint>(0); __vwsn_temp__.right = static_cast<::vl::vint>(0); __vwsn_temp__.bottom = static_cast<::vl::vint>(0); return __vwsn_temp__; }());
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
::vl::__vwsn::This(this->__vwsn_precompile_15)->SetText(::vl::WString(L"Calculate", false));
|
|
|
|
@@ -278,7 +284,7 @@ Class (::demo::MainWindow)
|
|
|
|
|
|
|
|
|
|
MainWindow::~MainWindow()
|
|
|
|
|
{
|
|
|
|
|
this->FinalizeInstanceRecursively(static_cast<::vl::presentation::controls::GuiControl*>(this));
|
|
|
|
|
this->FinalizeInstanceRecursively(static_cast<::vl::presentation::controls::GuiControlHost*>(this));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@@ -287,81 +293,6 @@ Class (::demo::MainWindow)
|
|
|
|
|
#undef GLOBAL_OBJ
|
|
|
|
|
#undef USERIMPL
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
|
Reflection
|
|
|
|
|
***********************************************************************/
|
|
|
|
|
|
|
|
|
|
namespace vl
|
|
|
|
|
{
|
|
|
|
|
namespace reflection
|
|
|
|
|
{
|
|
|
|
|
namespace description
|
|
|
|
|
{
|
|
|
|
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
|
|
|
|
IMPL_CPP_TYPE_INFO(demo::MainWindow)
|
|
|
|
|
IMPL_CPP_TYPE_INFO(demo::MainWindowConstructor)
|
|
|
|
|
|
|
|
|
|
#define _ ,
|
|
|
|
|
BEGIN_CLASS_MEMBER(::demo::MainWindow)
|
|
|
|
|
CLASS_MEMBER_CONSTRUCTOR(::demo::MainWindow*(), NO_PARAMETER)
|
|
|
|
|
END_CLASS_MEMBER(::demo::MainWindow)
|
|
|
|
|
|
|
|
|
|
BEGIN_CLASS_MEMBER(::demo::MainWindowConstructor)
|
|
|
|
|
CLASS_MEMBER_CONSTRUCTOR(::vl::Ptr<::demo::MainWindowConstructor>(), NO_PARAMETER)
|
|
|
|
|
CLASS_MEMBER_METHOD(__vwsn_initialize_instance_, { L"__vwsn_this_" })
|
|
|
|
|
CLASS_MEMBER_FIELD(__vwsn_precompile_0)
|
|
|
|
|
CLASS_MEMBER_FIELD(__vwsn_precompile_1)
|
|
|
|
|
CLASS_MEMBER_FIELD(__vwsn_precompile_10)
|
|
|
|
|
CLASS_MEMBER_FIELD(__vwsn_precompile_11)
|
|
|
|
|
CLASS_MEMBER_FIELD(__vwsn_precompile_12)
|
|
|
|
|
CLASS_MEMBER_FIELD(__vwsn_precompile_13)
|
|
|
|
|
CLASS_MEMBER_FIELD(__vwsn_precompile_14)
|
|
|
|
|
CLASS_MEMBER_FIELD(__vwsn_precompile_15)
|
|
|
|
|
CLASS_MEMBER_FIELD(__vwsn_precompile_16)
|
|
|
|
|
CLASS_MEMBER_FIELD(__vwsn_precompile_17)
|
|
|
|
|
CLASS_MEMBER_FIELD(__vwsn_precompile_2)
|
|
|
|
|
CLASS_MEMBER_FIELD(__vwsn_precompile_3)
|
|
|
|
|
CLASS_MEMBER_FIELD(__vwsn_precompile_4)
|
|
|
|
|
CLASS_MEMBER_FIELD(__vwsn_precompile_5)
|
|
|
|
|
CLASS_MEMBER_FIELD(__vwsn_precompile_6)
|
|
|
|
|
CLASS_MEMBER_FIELD(__vwsn_precompile_7)
|
|
|
|
|
CLASS_MEMBER_FIELD(__vwsn_precompile_8)
|
|
|
|
|
CLASS_MEMBER_FIELD(__vwsn_precompile_9)
|
|
|
|
|
CLASS_MEMBER_FIELD(textBoxA)
|
|
|
|
|
CLASS_MEMBER_FIELD(textBoxB)
|
|
|
|
|
CLASS_MEMBER_FIELD(textBoxC)
|
|
|
|
|
END_CLASS_MEMBER(::demo::MainWindowConstructor)
|
|
|
|
|
|
|
|
|
|
#undef _
|
|
|
|
|
class DemoTypeLoader : public Object, public ITypeLoader
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
void Load(ITypeManager* manager)
|
|
|
|
|
{
|
|
|
|
|
ADD_TYPE_INFO(::demo::MainWindow)
|
|
|
|
|
ADD_TYPE_INFO(::demo::MainWindowConstructor)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Unload(ITypeManager* manager)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
bool LoadDemoTypes()
|
|
|
|
|
{
|
|
|
|
|
#ifndef VCZH_DEBUG_NO_REFLECTION
|
|
|
|
|
if (auto manager = GetGlobalTypeManager())
|
|
|
|
|
{
|
|
|
|
|
return manager->AddTypeLoader(MakePtr<DemoTypeLoader>());
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#if defined( _MSC_VER)
|
|
|
|
|
#pragma warning(pop)
|
|
|
|
|
#elif defined(__GNUC__)
|
|
|
|
|