看效果:
上代码:
import win.ui;
/*DSG{{*/
var winform = win.form(text="aardio form";right=759;bottom=469)
winform.add(
static={cls="static";text="Static";left=308;top=185;right=518;bottom=354;ah=1;aw=1;font=LOGFONT(h=-32);transparent=1;z=1}
)
/*}}*/
var f = winform.static.getFont()
var h=f.h
var wh = winform.height
import godking.on
godking.on(winform).onSize = function(cw,ch,sizeType){
f.h=ch/wh*h
winform.static.setFont(f);
}
winform.show();
win.loopMessage();