30 lines
772 B
Plaintext
30 lines
772 B
Plaintext
import win.ui;
|
|
import win.region.hole;
|
|
/*DSG{{*/
|
|
var winform = win.form(text="aardio form";right=304;bottom=297;border="none";exmode="none";mode="popup")
|
|
winform.add(
|
|
plus={cls="plus";left=0;top=0;right=305;bottom=298;ah=1;aw=1;border={color=-65536;width=2};clipBk=false;db=1;dl=1;dr=1;dt=1;transparent=1;z=1}
|
|
)
|
|
/*}}*/
|
|
|
|
import console;
|
|
import gdip;
|
|
|
|
subscribe("getQrcode",function(...){
|
|
var qrcodePath, width, height = ...;
|
|
winform.width = width;
|
|
winform.height = height;
|
|
winform.plus.width = width;
|
|
winform.plus.height = height;
|
|
winform.plus.background = qrcodePath;
|
|
} )
|
|
|
|
import win.ui.layered;
|
|
win.ui.layered(winform);
|
|
|
|
import win.ui.simpleWindow;
|
|
main = win.ui.simpleWindow(winform,0,0,0);
|
|
win.ui.minmax(winform,50,50,500,500);
|
|
|
|
winform.show();
|
|
win.loopMessage(); |