使用 winform.edit.close() 删除控件
import win.ui; /*DSG{{*/ var winform = ..win.form( bottom=234;parent=...;right=566;text="aardio Form" ) winform.add( button={ bottom=168;text="button";left=206;top=127;z=2;right=342;cls="button" }; edit={ text="edit";bottom=97;right=389;left=158;multiline=1;top=45;z=1;edge=1;cls="edit" } ) /*}}*/
winform.button.oncommand = function(id,event){ winform.edit.close() }
winform.show() win.loopMessage();
|