import win.ui;
import godking.vlistEx;
/*DSG{{*/
mainForm = win.form(text="vlistEx - table adapter";right=607;bottom=319;border="thin")
mainForm.add(
listview={cls="vlistEx";left=16;top=24;right=595;bottom=304;acceptfiles=1;aw=1;db=1;dl=1;dr=1;dt=1;edge=1;hscroll=1;vscroll=1;z=1}
)
/*}}*/
//======================= 创建虚表 =======================
mainForm.listview.setColumns("下拉列表框(双击下拉)")
var t = { {"张三"}, {"李四"}, {"王五"}, {"SSS"}, {"AAA"}}
mainForm.listview.setTable(t,false);
//======================= 功能演示 =======================
mainForm.listview.setColumnType(1, 1/*_vlistEx_ColType_ComboBox*/, true/*显示小箭头*/, 0xFF00FF/*箭头颜色*/ )
mainForm.listview.setComboBoxItems({"张三", "李四", "王五", "SSS", "AAA"}); //设置下拉列表项目
mainForm.listview.onEditBegin = true; //允许编辑才能下拉
mainForm.show();
win.loopMessage();