用winform.transparent,可以设置透明色,可设置后透明穿透,不设透明色,设全局透明度而里面控件也跟着透明。有没有办法窗口透明或接近透明而控件不透明,而且不穿透?
import win.ui; /*DSG{{*/ var winform = win.form(text="aardio form";right=759;bottom=469;bgcolor=16711935;border="none";exmode="none";max=false;min=false;mode="popup";sysmenu=false;title=false) winform.add( button={cls="button";text="Button";left=56;top=72;right=184;bottom=128;z=1}; calendar={cls="calendar";left=264;top=80;right=488;bottom=200;edge=1;z=2}; checkbox={cls="checkbox";text="Checkbox";left=288;top=232;right=480;bottom=288;bgcolor=16711935;color=32768;font=LOGFONT(h=-16;name='System';weight=700);z=4}; checklist={cls="checklist";left=24;top=200;right=208;bottom=328;edge=1;items={};z=3}; radiobutton={cls="radiobutton";text="Radiobutton";left=280;top=304;right=464;bottom=336;bgcolor=16711935;font=LOGFONT(h=-20;name='Terminal');z=5}; static={cls="static";text="Static";left=536;top=64;right=712;bottom=144;font=LOGFONT(h=-56);transparent=1;z=6} ) /*}}*/ winform.show(); winform.transparent(128,0xFF00FF) win.loopMessage();
光庆 窗口设置个颜色,然后该颜色透明,就可以吧