VideoWatermark/dlg/test.aardio

20 lines
365 B
Plaintext
Raw Normal View History

2024-08-27 23:11:10 +08:00
import win.ui;
2024-08-30 00:33:22 +08:00
// 创建父窗口
var mainForm = win.form(text="父窗口");
2024-08-27 23:11:10 +08:00
2024-08-30 00:33:22 +08:00
// 创建子窗口
2024-08-30 01:03:14 +08:00
var childForm = win.form(text="子窗口");
2024-08-30 00:33:22 +08:00
// 设置子窗口的父窗口为 mainForm
win.setParent(childForm.hwnd, mainForm.hwnd);
2024-08-30 00:33:22 +08:00
// 显示父窗口和子窗口
mainForm.show();
childForm.show();
childForm.setPos(0,0);
// 启动消息循环
win.loopMessage();