当前位置: 代码迷 >> 综合 >> aardio - 简单开关演示
  详细解决方案

aardio - 简单开关演示

热度:8   发布时间:2024-01-14 01:49:30.0

代码: 

import win.ui;
/*DSG{
   {*/
var winform = win.form(text="aardio form";right=759;bottom=469)
winform.add(
plus={cls="plus";left=209;top=136;right=499;bottom=302;foreRepeat="stretch";foreground="\guan.png";notify=1;z=1}
)
/*}}*/winform.show();winform.plus.oncommand = function(id,event){winform.plus.foreground = owner.checked?"\kai.png":"\guan.png"
}win.loopMessage();

素材: 

kai.png
guan.png

运行效果: