GET_SHAPE_CONFIG(LIST::LIST_DEFAULT_ITEM_HEIGHT, _CONTROL_ORIENTATION_PORTRAIT, _defaultItemHeight);
GET_COLOR_CONFIG(TABLEVIEW::EMPTY_CONTENTS_TEXT_NORMAL, __emptyTextColor);
- for (int i = 0; i < CHECK_BOX_MAX; i++)
+ for (int i = 0; i < BITMAP_MAX; i++)
{
_pCheckBitmaps[i] = null;
}
_ListBaseImpl::~_ListBaseImpl(void)
{
- for (int i = 0; i < CHECK_BOX_MAX; i++)
+ for (int i = 0; i < BITMAP_MAX; i++)
{
delete _pCheckBitmaps[i];
}
+ if (__pEmptyText != null)
+ {
+ GetCore().DetachChild(*__pEmptyText);
+
+ delete __pEmptyText;
+ __pEmptyText = null;
+ }
+
_TableView* pCore = static_cast<_TableView*>(&GetCore());
SysTryReturnVoidResult(NID_UI_CTRL, (pCore != null), E_SYSTEM, "[E_SYSTEM] A system error has occurred. Failed to get _TableView core object.");
{
if (__pItemProvider && __pItemProvider->firstTime == true)
{
- _itemsList.RemoveAll(true);
+ _itemsList.RemoveAll(false);
}
else
{
- _itemsList.RemoveAll(false);
+ _itemsList.RemoveAll(true);
}
__slidableListenersList.RemoveAll(true);
r = __pCheckedList->SetCapacity(count);
SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
+ for (int itemIndex = prevCount - 1; itemIndex >= count; itemIndex--)
+ {
+ __pCheckedList->RemoveAt(itemIndex, true);
+ }
+
for (int itemIndex = prevCount; itemIndex < count; itemIndex++)
{
pChecked = new (std::nothrow) Boolean(false);
if (&child == pSimpleItemTextCore)
{
+ delete __pSimpleItemText;
__pSimpleItemText = null;
}
if (&child == pSimpleItemBitmapCore)
{
+ delete __pSimpleItemBitmap;
__pSimpleItemBitmap = null;
}
}