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 = {
{..math.random(0, 100)}
{..math.random(0, 100)}
{..math.random(0, 100)}
{..math.random(0, 100)}
{..math.random(0, 100)}
}
mainForm.listview.setTable(t,false);
mainForm.listview.headerAlign =1;
//======================= 功能演示 =======================
mainForm.listview.setColumnType( 1,3/*_vlistEx_ColType_Progress*/,0xCCDDEE/*背景色*/,0x225699/*前景色*/ )
mainForm.show();
win.loopMessage();