aardio 文档

aardio 范例: 窗口程序 - 通知窗口

//窗口程序 - 通知窗口 
import win.ui;
/*DSG{{*/
var winform = win.form(text="aardio form";right=208;bottom=150;bgcolor=15780518;border="none";exmode="toolwindow";parent=...;topmost=1)
winform.add(
button={cls="button";text="r";left=179;top=1;right=201;bottom=18;font=LOGFONT(name='Marlett';charset=2;weight=500);z=1};
static={cls="static";text="static";left=30;top=43;right=162;bottom=72;transparent=1;z=2}
)
/*}}*/

import win.util.popup

//使窗口在屏幕右下角弹出
pop = win.util.popup(winform) 
pop.countdown=function(remaintime){
    winform.static.text = "剩余时间:" + remaintime  + "秒"
}

winform.button.oncommand = function(id,event){ 
    winform.close();

}//endproc
winform.show(true) 
win.loopMessage();
return winform;  

Markdown 格式