This embeds inside a normal listbox and displays a list of checkboxes
list of functions
heres how to set up a simple list, CheckList items always start from a index of 1 above the ListID, so a ListID of 100 will have items 101, 102, 103 etc)Code:CheckList.Init CheckList.AddItem CheckList.SetText CheckList.GetText CheckList.SetChecked CheckList.GetChecked CheckList.GetEnabled CheckList.SetEnabled CheckList.GetVisible CheckList.SetVisible
and there is 1 exported eventCode:hWnd = ListBox.GetProperties("ListBox5").WindowHandle; CheckList.Init(hWnd, 100, 12632256, CL_Double); CheckList.AddItem(100, 1, "CheckBox 1", 3355443, CL_Center); CheckList.AddItem(100, 2, "CheckBox 2", 3355443, CL_Right); CheckList.AddItem(100, 3, "CheckBox 3", 3355443); CheckList.AddItem(100, 4, "CheckBox 4", 3355443); CheckList.Show(hWnd, 100);
have fun and report bugsCode:function CheckList_Event(nListItemID,nState) if nState == 1 then Label.SetText("Label1", "Item: "..nListItemID.." was Checked."); else Label.SetText("Label1", "Item: "..nListItemID.." was UnChecked."); end end
i just noticed, there are some undocumented functions, once you call CheckList.Show(hWnd, 100) you can not add any more items to the list

Reply With Quote
don't overwork yourself xD Thanks alot, great plugin... again

