主窗口:

import fonts.fontAwesome;
import win.ui;
/*DSG{{*/
mainForm = win.form(right=713;bottom=570;bgcolor=16777215;border="none")
mainForm.add(
custom={cls="custom";left=0;top=40;right=717;bottom=571;bgcolor=16777215;db=1;dl=1;dr=1;dt=1;z=1};
navFirst={cls="plus";text="主页";left=242;top=2;right=336;bottom=37;align="left";color=16777215;dl=1;dt=1;font=LOGFONT(h=-16);iconStyle={align="left";font=LOGFONT(h=-19;name='FontAwesome');padding={left=12;top=4}};iconText='\uF00A';notify=1;paddingLeft=1;paddingRight=1;paddingTop=3;textPadding={left=39;bottom=1};x=0.5;y=0.2;z=3};
navSetting={cls="plus";text="设置";left=368;top=2;right=462;bottom=37;align="left";color=16777215;dl=1;dt=1;font=LOGFONT(h=-16);iconStyle={align="left";font=LOGFONT(h=-19;name='FontAwesome');padding={left=12;top=4}};iconText='\uF0AD';notify=1;paddingLeft=1;paddingRight=1;paddingTop=3;textPadding={left=39;bottom=1};x=0.5;y=0.2;z=4};
titleBar={cls="bkplus";left=-326;top=-1;right=716;bottom=40;bgcolor=6318930;dl=1;dr=1;dt=1;forecolor=16777215;linearGradient=180;z=2}
)
/*}}*/

import win.ui.simpleWindow;
win.ui.simpleWindow( mainForm );

import win.ui.tabs;
var tbs = win.ui.tabs(
mainForm.navFirst,
mainForm.navSetting
);

tbs.loadForm(1,"\dlg\broadcast.aardio" );
tbs.loadForm(2,"\dlg\setting.aardio" );
tbs.preloadForm(2,true);

mainForm.tbs = tbs;

tbs.selIndex = 1;
mainForm.show();
return win.loopMessage();

一个子窗口(访问其他窗口)

import win.ui;
/*DSG{{*/
var winform = win.form(right=669;bottom=455;mode="popup")
winform.add(
button={cls="button";text="测试写设置窗口内容";left=241;top=194;right=374;bottom=252;z=1}
)
/*}}*/

winform.button.oncommand = function(id,event){
if ::设置窗口_全局常量 ::设置窗口_全局常量.edit.print("::设置窗口_全局常量")
if mainForm.tbs.forms[2] mainForm.tbs.forms[2].edit.print("mainForm.tbs.forms[2]")
if ..设置窗口_全局变量 ..设置窗口_全局变量.edit.print("..设置窗口_全局变量")
if mainForm.设置窗口 mainForm.设置窗口.edit.print("mainForm.设置窗口")
if winform_全局 winform_全局.edit.print("winform_全局")
}

winform.show()
win.loopMessage();

另一个子窗口(被访问窗口)

import win.ui;
/*DSG{{*/
winform_全局 = win.form(text="设置";right=801;bottom=376;bgcolor=16777215)
winform_全局.add(
edit={cls="edit";left=103;top=85;right=701;bottom=280;edge=1;multiline=1;z=1}
)
/*}}*/

winform_全局.show();
winform_全局.edit.print("以下方法可以访问其他窗口:")

::设置窗口_全局常量 = winform_全局;
..设置窗口_全局变量 = winform_全局;
mainForm.设置窗口 = winform_全局;
win.loopMessage();