Page 1 of 1

Is it possible to add checkbox into MultiColumnList?

Posted: Fri Feb 13, 2009 09:57
by kili
As title, we want to add checkbox in front of MultiColumnList's child items,
how to implement this?( I've inherited ListboxItem, added a checkbox member)

Any help appreciated.

Posted: Fri Feb 13, 2009 13:06
by scriptkid
Hi kili,

this wiki page might provide some help:
http://www.cegui.org.uk/wiki/index.php/ ... istboxItem

HTH :)

Posted: Sat Feb 14, 2009 01:50
by kili
Hi scriptkid,

I've added a StaticImage and a Checkbox to Listbox before, but this time, it is MultiColumnList.

mcl->addChildWindow(check);
couldn't help me add an Item into correspond row/column.

Should I also let the CheckListboxItem inherit ListboxItem?

Posted: Mon Feb 16, 2009 10:05
by CrazyEddie
Adding Window based content to the MCL is big issue, in that it can't really be done.

You might get some value you of the PseudoListbox article - depending what your needs are it can give the effect of a listbox, wile not actually being one.

HTH

CE.

Posted: Tue Feb 17, 2009 01:28
by kili
Hi CE,

Thanks for help, I'll try it next week. :)