Code here
import win.ui;
/*DSG{{*/
var winform = win.form(text="aardio form";right=759;bottom=469)
winform.add(
button={cls="button";text="Button";left=160;top=448;right=272;bottom=464;z=2};
richedit={cls="richedit";left=0;top=0;right=760;bottom=432;edge=1;hscroll=1;multiline=1;vscroll=1;z=1}
)
/*}}*/
winform.richedit.streamIn($"D:\Pycharm\new\sm.rtf"); //
winform.button.oncommand = function(id,event){
winform.richedit.streamIn($"D:\Pycharm\new\sm.rtf");
}
winform.show();
win.loopMessage();
return winform;
这个窗口直接运行可以正确显示sm.rtf内容,但是在主窗口调用这个窗口richedit空空如也,怎么办?必须点一次按钮才行
Code here
mainForm.button3.oncommand = function(id,event){
var frmChild = mainForm.loadForm("\sss.aardio");
frmChild.show();
}