web.kit.form的使用

admin2021-01-01  28

import win.ui;  
/*DSG{{*/
var winform = win.form(text="aardio form";right=759;bottom=469)
winform.add(
button={cls="button";text="改HTML";left=672;top=8;right=752;bottom=32;dr=1;dt=1;z=3};
custom={cls="custom";text="custom";left=8;top=40;right=752;bottom=464;db=1;dl=1;dr=1;dt=1;edge=1;z=1};
edit={cls="edit";text="edit";left=8;top=8;right=664;bottom=32;dl=1;dr=1;dt=1;edge=1;multiline=1;z=2}
)
/*}}*/

import web.kit.form;
var wb = web.kit.form(winform.custom);
wb.go("http://www.baidu.com");

winform.button.oncommand = function(id,event){
    var ele = wb.queryEles( "p",{ innerHTML="System integration software development"  } );
    ele.innerHTML="新的值";
   
    wb.document.body.scrollTop = wb.document.body.scrollHeight;
}

winform.show(3/*_SW_MAXIMIZE*/);
win.loopMessage();
转载请注明原文地址: http://www.aardio.net/read-116.html
最新回复(0)