import win.ui;
/*DSG{{*/
var winform = win.form(parent=...; bottom=399;text="开始......";left=0;exmode="none";top=0;right=599;mode="child";border="none" )
winform.add(  )
/*}}*/

import web.form; 
var wb = web.form( winform ,0x200000/*_UIFLAG_NO3DOUTERBORDER*/ | 0x4/*_UIFLAG_NO3DBORDER*/ | 0x40000/*_UIFLAG_THEME*/  );

import fsys;
import process;
import web.util;
wb.external={ 
	openAAutoReference = function(){
		process.execute( fsys.joinpath(io._exedir,"help\AAUTO.CHM") )
	}
	openWinApiReference  = function(){
		process.execute( fsys.joinpath(io._exedir,"help\WINAPI.CHM") )
	}
	openMessageDoc = function(){
		process.execute( fsys.joinpath(io._exedir,"help\MSG.HTM") )
	} 
	goForum = function(){
		web.util.ieBrowser("http://www.aau.cn")
	}
	goTrick = function(){
		web.util.ieBrowser("http://www.aau.cn/thread-427-1-1.html")
	} 
	goShareCode = function(){
		web.util.ieBrowser("http://www.aau.cn/forum-39-1.html")
	} 
	about = function(){
		ide.showDesktopAlert("
长亭外，古道边，芳草碧连天。 
晚风拂柳笛声残，夕阳山外山。 
天之涯，地之角，知交半零落。 
一壶浊酒尽余欢，今宵别梦寒。","www.aau.cn ........","http://www.aau.cn"
		);
	} 
}

//打开目标网站
wb.go("/res/startPage.html")
wb.wait("");//等待指定网址,可以使用模式匹配语法
 
import ide;
ide.pluginViewShow(winform)  
win.loopMessage();
