//树视图(treeview)控件 - 显示普通表对象 import win.ui; /*DSG{{*/ var winform = win.form(text="显示普通表对象";right=536;bottom=674) winform.add( treeview={cls="treeview";left=7;top=14;right=523;bottom=650;bgcolor=0xFFFFFF;db=1;dl=1;dr=1;dt=1;edge=1;hscroll=1;vscroll=1;z=1} ) /*}}*/ winform.treeview.insertTable({ label = "test"; tree = { label = "test2"; array ={ "abc";"def";{ 123;456;789 } } } }) winform.treeview.expandAll(); winform.show(); win.loopMessage();