import win.ui;
import godking.comboboxEx;
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=304;bottom=304;acceptfiles=1;aw=1;db=1;dl=1;dr=1;dt=1;edge=1;hscroll=1;vscroll=1;z=1};
vlistEx={cls="vlistEx";left=320;top=24;right=592;bottom=304;acceptfiles=1;aw=1;db=1;dl=1;dr=1;dt=1;edge=1;z=2}
)
/*}}*/
var t = { {"张三"}, {"李四"}, {"王五"}, {"SSS"}, {"AAA"}}
mainForm.listview.setColumns("下拉列表框")
mainForm.listview.setTable(t,false/*列标题*/,/*列宽*/,/*0左1中2右*/,/*字典转为数组*/,/*字符串转为Utf8*/,true/*是否克隆新表*/)
mainForm.listview.addImg("jiantou",$"D:\图片素材\png\png32_漂亮图标\image16.png",false/*是否替换*/,20/*宽度*/,20/*高度*/)
mainForm.listview.setColumnType( 1,1/*_vlistEx_ColType_ComboBox*/,true/*是否显示小箭头或图片*/,"jiantou"/*箭头颜色或图片*/ );
mainForm.listview.setComboBoxItems({"张三", "李四", "王五", "SSS", "AAA"}); //设置下拉列表项目
mainForm.vlistEx.setColumns("下拉列表框");
mainForm.vlistEx.setTable(t,false/*列标题*/,/*列宽*/,/*0左1中2右*/,/*字典转为数组*/,/*字符串转为Utf8*/,true/*是否克隆新表*/)
mainForm.vlistEx.setColumnType( 1,1/*_vlistEx_ColType_ComboBox*/,true/*是否显示小箭头或图片*/,$"D:\图片素材\png\png32_精致草绿\arrow-next.png"/*箭头颜色或图片*/ );
mainForm.vlistEx.setComboBoxItems({"张三", "李四", "王五", "SSS", "AAA"}); //设置下拉列表项目
mainForm.show();
win.loopMessage();