about ListboxItem, Listbox, ItemListbox...
Posted: Wed Jan 09, 2008 13:51
Hi, I have two questions about the Listbox.
1) A ListboxTextItem often create like this:
ListboxTextItem* item = new ListboxTextItem("item1");
This is not a auto_ptr, so when the application shut down, does the ListboxTextItem object delete by itself? if not, where should it be deleted?
2) What is the different between ItemListbox and Listbox? Can I add a ListboxTextItem to ItemListbox? as the "addItem" method in the "ItemListbox" define like this "addItem(ItemEntry *item)", It cannot convert a ListboxTextItem* to ItemEntry*.
any help~
thanks!
1) A ListboxTextItem often create like this:
ListboxTextItem* item = new ListboxTextItem("item1");
This is not a auto_ptr, so when the application shut down, does the ListboxTextItem object delete by itself? if not, where should it be deleted?
2) What is the different between ItemListbox and Listbox? Can I add a ListboxTextItem to ItemListbox? as the "addItem" method in the "ItemListbox" define like this "addItem(ItemEntry *item)", It cannot convert a ListboxTextItem* to ItemEntry*.
any help~
thanks!