import win.ui;
import godking.comboboxEx;
import godking.vlistEx;
/*DSG{{*/
mainForm = win.form(text="vlistEx - table adapter";right=399;bottom=423;border="thin")
mainForm.add(
listview={cls="vlistEx";left=8;top=8;right=392;bottom=416;acceptfiles=1;aw=1;db=1;dl=1;dr=1;dt=1;edge=1;hscroll=1;vscroll=1;z=1}
)
/*}}*/
mainForm.listview.setRowHeight(100);
mainForm.listview.addImg("jiantou",$"D:\图片素材\png\png32_漂亮图标\image16.png",false/*是否替换*/,20/*宽度*/,20/*高度*/)
var t = { {"jiantou"}, //图片名称
{$"D:\图片素材\png\png32_漂亮图标\image1.png"}, //图片数据
{"D:\图片素材\png\png32_漂亮图标\image2.png"} //图片文件路径
}
mainForm.listview.setColumns("下拉列表框")
mainForm.listview.setTable(t,false/*列标题*/,/*列宽*/,/*0左1中2右*/,/*字典转为数组*/,/*字符串转为Utf8*/,true/*是否克隆新表*/)
mainForm.listview.setColumnType( 1,2/*_vlistEx_ColType_Image*/,1/*0居中1缩放2填满*/ )
mainForm.show();
win.loopMessage();