//创建下载对话框
import win.ui;
/*DSG{{*/
var winform = win.form( bottom=110;parent=...;text="AAuto Form";right=425 )
winform.add( 
button={ bottom=76;text="下载";left=191;top=38;z=1;right=350;cls="button" }
)
/*}}*/

import inet.downBox;
winform.button.oncommand = function(id,event){
	var downBox = inet.downBox(winform,"下载测试网页...")
	downBox.endProc = function(ret,fileSize,err){
		if(!err)
			owner.endModal();
	} 
	
	downBox.download(
		"http://www.ecranesoft.com/public/aauto/lib/java.cab"
		, ..fsys.joinpath(..io._exedir,"/download/lib/java.cab") 
	 	) 
}

winform.show() 
win.loopMessage();
