mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-22 23:36:46 +08:00
Update release
This commit is contained in:
@@ -15,7 +15,7 @@ void GuiMain()
|
||||
List<WString> errors;
|
||||
FileStream fileStream(L"../UIRes/Alignment.bin", FileStream::ReadOnly);
|
||||
auto resource = GuiResource::LoadPrecompiledBinary(fileStream, errors);
|
||||
GetInstanceLoaderManager()->SetResource(L"Resource", resource);
|
||||
GetInstanceResourceManager()->SetResource(L"Resource", resource);
|
||||
}
|
||||
demo::MainWindow window;
|
||||
window.MoveToScreenCenter();
|
||||
|
||||
@@ -15,7 +15,7 @@ void GuiMain()
|
||||
List<WString> errors;
|
||||
FileStream fileStream(L"../UIRes/Flow.bin", FileStream::ReadOnly);
|
||||
auto resource = GuiResource::LoadPrecompiledBinary(fileStream, errors);
|
||||
GetInstanceLoaderManager()->SetResource(L"Resource", resource);
|
||||
GetInstanceResourceManager()->SetResource(L"Resource", resource);
|
||||
}
|
||||
demo::MainWindow window;
|
||||
window.MoveToScreenCenter();
|
||||
|
||||
@@ -47,14 +47,14 @@
|
||||
<ev.Clicked-eval>
|
||||
<![CDATA[
|
||||
{
|
||||
for (item in flowLayout.FlowItems)
|
||||
for (flowItem in flowLayout.FlowItems)
|
||||
{
|
||||
item.ExtraMargin = cast Margin "";
|
||||
flowItem.ExtraMargin = cast Margin "";
|
||||
}
|
||||
|
||||
var item = cast (FlowItem*) sender.Parent;
|
||||
item.ExtraMargin = cast Margin "left:10 top:10 right:10 bottom:10";
|
||||
flowLayout.MoveChild(item, flowLayout.FlowItems.Count - 1);
|
||||
var selectedItem = cast (FlowItem*) sender.Parent;
|
||||
selectedItem.ExtraMargin = cast Margin "left:10 top:10 right:10 bottom:10";
|
||||
flowLayout.MoveChild(selectedItem, flowLayout.FlowItems.Count - 1);
|
||||
}
|
||||
]]>
|
||||
</ev.Clicked-eval>
|
||||
|
||||
@@ -24,7 +24,7 @@ void GuiMain()
|
||||
List<WString> errors;
|
||||
FileStream fileStream(L"../UIRes/RichTextEmbedding.bin", FileStream::ReadOnly);
|
||||
auto resource = GuiResource::LoadPrecompiledBinary(fileStream, errors);
|
||||
GetInstanceLoaderManager()->SetResource(L"Resource", resource);
|
||||
GetInstanceResourceManager()->SetResource(L"Resource", resource);
|
||||
}
|
||||
demo::MainWindow window(new ViewModel);
|
||||
window.MoveToScreenCenter();
|
||||
|
||||
@@ -15,7 +15,7 @@ void GuiMain()
|
||||
List<WString> errors;
|
||||
FileStream fileStream(L"../UIRes/Stack.bin", FileStream::ReadOnly);
|
||||
auto resource = GuiResource::LoadPrecompiledBinary(fileStream, errors);
|
||||
GetInstanceLoaderManager()->SetResource(L"Resource", resource);
|
||||
GetInstanceResourceManager()->SetResource(L"Resource", resource);
|
||||
}
|
||||
demo::MainWindow window;
|
||||
window.MoveToScreenCenter();
|
||||
|
||||
@@ -32,14 +32,14 @@
|
||||
<ev.Clicked-eval>
|
||||
<![CDATA[
|
||||
{
|
||||
for (item in stackLayout.StackItems)
|
||||
for (stackItem in stackLayout.StackItems)
|
||||
{
|
||||
item.ExtraMargin = cast Margin "";
|
||||
stackItem.ExtraMargin = cast Margin "";
|
||||
}
|
||||
|
||||
var item = cast (StackItem*) sender.Parent;
|
||||
item.ExtraMargin = cast Margin "left:10 top:10 right:10 bottom:10";
|
||||
stackLayout.MoveChild(item, stackLayout.StackItems.Count - 1);
|
||||
var selectedItem = cast (StackItem*) sender.Parent;
|
||||
selectedItem.ExtraMargin = cast Margin "left:10 top:10 right:10 bottom:10";
|
||||
stackLayout.MoveChild(selectedItem, stackLayout.StackItems.Count - 1);
|
||||
}
|
||||
]]>
|
||||
</ev.Clicked-eval>
|
||||
|
||||
@@ -15,7 +15,7 @@ void GuiMain()
|
||||
List<WString> errors;
|
||||
FileStream fileStream(L"../UIRes/Table.bin", FileStream::ReadOnly);
|
||||
auto resource = GuiResource::LoadPrecompiledBinary(fileStream, errors);
|
||||
GetInstanceLoaderManager()->SetResource(L"Resource", resource);
|
||||
GetInstanceResourceManager()->SetResource(L"Resource", resource);
|
||||
}
|
||||
demo::MainWindow window;
|
||||
window.MoveToScreenCenter();
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user