动态窗口测试通过

This commit is contained in:
Cheney 2024-08-20 15:40:27 +08:00
parent 76abef7a94
commit 6f68c87114
3 changed files with 26 additions and 6 deletions

11
aardiowin/Readme.md Normal file
View File

@ -0,0 +1,11 @@
## 编译
1. 使用 aardio 打开项目
## 辅助 AI
https://yuanqi.tencent.com/agent/ZsUaavawqWFp

View File

@ -24,9 +24,10 @@ namespace init{
// 配置载入函数 // 配置载入函数
loadConfigs = function() { loadConfigs = function() {
import io;
import util;
gLog.print("loadConfigs");
gLog.print("dir");
var configs = {}; var configs = {};
var currentPath = fsys.getCurDir(); var currentPath = fsys.getCurDir();
gLog.print("currentPath", currentPath); gLog.print("currentPath", currentPath);
@ -62,7 +63,8 @@ namespace init{
// 合并配置,后读取的覆盖先读取的 // 合并配置,后读取的覆盖先读取的
object.merge(configs, appDataConfig, true); object.merge(configs, appDataConfig, true);
} }
gLog.print("configs", util.table.stringify(configs, true));
return configs; return configs;
}; };

View File

@ -7,15 +7,22 @@ init.init();
var gConfig = init.loadConfigs(); var gConfig = init.loadConfigs();
var gDebug = init.getDebug(); var gDebug = init.getDebug();
// 启动界面
/*DSG{{*/ /*DSG{{*/
mainForm = win.form(text="awin";right=gConfig.window.width;bottom=gConfig.window.height;border="thin";max=false;min=false) mainForm = win.form(text="awin";right=1;bottom=1;border="thin";max=false;min=false)
mainForm.add() mainForm.add()
/*}}*/ /*}}*/
// 启动界面 // 日志
var gLog = init.getLog(); var gLog = init.getLog();
gLog.print("web view") gLog.print("width=" , gConfig.window.width)
gLog.print("height=" , gConfig.window.height)
mainForm.resize(gConfig.window.width, gConfig.window.height);
import web.view; import web.view;
var theView = web.view(mainForm); var theView = web.view(mainForm);