import win.ui;
import win.ui.menu;
import win.ole.image;
/*DSG{{*/
var winform = win.form(parent=...; bottom=73;right=221;border="resizable";text="皮肤库例程" )
winform.add( 
button={ bottom=50;text="对话框";left=23;top=22;font=LOGFONT( name="宋体";h=-12 );z=1;right=103;cls="button" };
button2={ bottom=50;text="打开文件";left=113;top=22;font=LOGFONT( name="宋体";h=-12 );z=2;right=193;cls="button" }
)
/*}}*/

io.open() //打开控制台，以禁用默认的错误对话框

import labs.skin;
labs.skin.attach(winform.hwnd, string.load("/res/default.gif"));

winform.button.oncommand = function(id, event) {
	//win.msgboxTest("询问用户的信息", "标题");
}
winform.button2.oncommand = function(id, event) {
	//import fsys.dlg;
	//fsys.dlg.open();
}

winform.show(true) 
win.loopMessage();
io.close()