看效果:
上代码:
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();
————————————————
版权声明:本文为CSDN博主「卢光庆」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/sdlgq/article/details/122024179