
import win.ui;
import win.ui.menu;
import com.picture;
/*DSG{{*/
var winform = win.form(parent=...; top=-2;bottom=75;right=579;left=-2;text="AAuto Form" )
winform.add( 
btnCpy={ bottom=47;right=543;left=450;top=21;z=3;text="复制到剪贴板";cls="button" };
btnGenerant={ bottom=47;right=446;left=353;top=21;z=2;text="生成GUID";cls="button" };
txtGuid={ bottom=47;right=339;left=31;multiline=1;top=21;z=1;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;
