
import win.ui;
import win.ui.menu;
import win.ole.image;
/*DSG{{*/
var winform = win.form( min=1;right=579;top=0;bottom=75;text="AAuto Form";left=0;cls="AAU_FORM" )
winform.add( 
btnCpy={ bottom=47;text="复制到剪贴板";left=450;right=543;top=21;z=2;cls="button" };
btnGenerant={ bottom=47;text="生成GUID";left=353;right=446;top=21;z=1;cls="button" };
txtGuid={ bottom=47;right=339;left=31;multiline=1;top=21;z=0;text="edit";edge=1;cls="edit" }
)
/*}}*/

winform.btnCpy.oncommand = function(id,event){
	win.clip.write(winform.txtGuid.text)
}//endproc


import win.guid;
import win.clip;

winform.btnGenerant.oncommand = function(id,event){
	var guid = win.guid.create();
	winform.txtGuid.text =  string.upper( tostring(guid) ) 
	
}//endproc
winform.show(true) 
win.loopMessage();
return winform;
