Refine snapshot invalidation and modal resize behavior
This commit is contained in:
+5
-3
@@ -1,6 +1,6 @@
|
||||
// 本工具基于 StellarX 构建,轻量级的 Windows GUI 框架。
|
||||
#include"StellarX.h"
|
||||
#define KEY 1
|
||||
#define KEY 2
|
||||
|
||||
#if 1 == KEY
|
||||
int main()
|
||||
@@ -560,6 +560,8 @@ int main()
|
||||
configuration->addControl(std::move(signedToggle));
|
||||
configuration->addControl(std::move(configurationLabel));
|
||||
|
||||
selectionArea->setAnchor(StellarX::Anchor::Right, StellarX::Anchor::Left);
|
||||
selectionArea->setLayoutMode(StellarX::LayoutMode::AnchorToEdges);
|
||||
mainWindow.addControl(std::move(selectionArea));
|
||||
mainWindow.addControl(std::move(function));
|
||||
mainWindow.addControl(std::move(NumericalDisplayArea));
|
||||
@@ -580,7 +582,7 @@ int main()
|
||||
{
|
||||
StellarX::SxLogger::setGBK();
|
||||
StellarX::SxLogger::Get().enableConsole(true);
|
||||
StellarX::SxLogger::Get().setMinLevel(StellarX::SxLogLevel::Trace); // Info/Debug/Trace 自己切
|
||||
StellarX::SxLogger::Get().setMinLevel(StellarX::SxLogLevel::Debug); // Info/Debug/Trace 自己切
|
||||
StellarX::SxLogger::Get().setLanguage(StellarX::SxLogLanguage::ZhCN); // ZhCN / EnUS
|
||||
|
||||
Window win(1300, 800, 1, RGB(255, 255, 0), "记账管理系统");
|
||||
@@ -691,7 +693,7 @@ int main()
|
||||
if ("\0" == logIn_textBox_ptr[0]->getText())logIn_textBox_ptr[0]->setTextBoxBk(RGB(255, 0, 0));
|
||||
if ("\0" == logIn_textBox_ptr[1]->getText())logIn_textBox_ptr[1]->setTextBoxBk(RGB(255, 0, 0));
|
||||
std::cout << "\a";
|
||||
StellarX::MessageBox::showAsync(win, "账号或密码不能为空!", "提示");
|
||||
StellarX::MessageBox::showModal(win, "账号或密码不能为空!", "提示");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user