View Full Version : CheckList Action Plugin
RizlaUK
01-28-2009, 09:21 AM
This embeds inside a normal listbox and displays a list of checkboxes
list of functions
CheckList.Init
CheckList.AddItem
CheckList.SetText
CheckList.GetText
CheckList.SetChecked
CheckList.GetChecked
CheckList.GetEnabled
CheckList.SetEnabled
CheckList.GetVisible
CheckList.SetVisible
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)
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);
and there is 1 exported event
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
have fun and report bugs :yes
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
Imagine Programming
01-28-2009, 10:04 AM
dude your on a pluginspree here:p don't overwork yourself xD Thanks alot, great plugin... again:p
RizlaUK
01-28-2009, 10:29 AM
thanks, i know AMS already has checkboxes, but i tought this would come in handy to some, i know i will use it on settings windows where the AMS CB just looks to cumbersome and a few boxes take half the page, this is a little more sleek, and makes adding and working with a number of CB's much easyer
ShadowUK
01-28-2009, 10:29 AM
thanks, i know AMS already has checkboxes, but i tought this would come in handy to some, i know i will use it on settings windows where the AMS CB just looks to cumbersome and a few boxes take half the page, this is a little more sleek, and makes adding and working with a number of CB's much easyer
Very nice, I hope you're still working on ListIcon though.
Imagine Programming
01-28-2009, 10:40 AM
Very nice, I hope you're still working on ListIcon though.
Hehe, Shadow, i'm busy with something nice aswell ^^
RizlaUK
01-28-2009, 11:20 AM
I hope you're still working on ListIcon though.
well, im trying to establish the bounderys of what can and what cannot be done, while making some smaller less complex objects i might learn something that will fix the listicon ... till then .. its on the shelf
reteset
01-28-2009, 12:20 PM
good job :yes
it works well
one thing it is not resizable and movable
RizlaUK
01-28-2009, 12:30 PM
one thing it is not resizable and movable
im working on that right now, will have a update tonight
RizlaUK
01-28-2009, 01:34 PM
na, this system is just not working, no matter what i do it crashes when the window is resized, these objects are for non resibile windows only
it seems my object additions are going to be some what limited ... time to move onto another worthy cause then, lol
ShadowUK
01-28-2009, 01:42 PM
na, this system is just not working, no matter what i do it crashes when the window is resized, these objects are for non resibile windows only
it seems my object additions are going to be some what limited ... time to move onto another worthy cause then, lol
Could you possibly release ListIcon then? I mean, I'd love it even without the resizing stuff.
Centauri Soldier
01-28-2009, 03:10 PM
Wow! Nice work Rizla. Thanks for sharing. :D
RizlaUK
01-28-2009, 03:32 PM
Could you possibly release ListIcon then?
ok, i'll finish it off then, if it will get used i will make it, just dident think it was much use only on a non-resizeible window
Tomasin
01-28-2009, 03:39 PM
excellent! THX
Dermot
01-28-2009, 05:05 PM
Nice work. You know non sizable objects could be used on popup DialogEx windows. Most of the time (at least for me) they are not resizable.
RizlaUK
01-28-2009, 05:47 PM
very true, i hardly have resizebile dialogs
i found a bug in my own code tho, that i dident know was there till now, its in the whole selection system with checkboxes enabled, returning wrong values so it needs some tweeking, i got the "Set" section done, now for the "Get" section
give me a day or 2 and i'll post it in the plugins forum
Intrigued
01-28-2009, 07:49 PM
Nice job, thanks RizlaUK.
ShadowUK
01-30-2009, 12:42 AM
Looking forward to it.
Sorry, how to get the file?
pabloko
10-14-2009, 12:26 AM
This is a great work and very intelligent connexion, thanks
A Great implementation could be insert objects in a cell of grid, checks, radios, listbox, images, progressbar, buttons, this can be a relly awesome bridge
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.