break;
default:
+ if (__itemSelected)
+ {
+ __annexOnOffHandlerMoved = false;
+ __itemTouchMoved = false;
+
+ __itemSelected = false;
+ __drawingStatus = TABLE_VIEW_ITEM_DRAWING_STATUS_NORMAL;
+
+ if (__annexStyle == TABLE_VIEW_ANNEX_STYLE_DETAILED)
+ {
+ __isSelectedDetailButton = false;
+ }
+
+ SetItemChanged(true);
+ Invalidate();
+ }
return false;
}
if (pItem != null)
{
pItem->GetItemIndex(itemPos.groupIndex, itemPos.itemIndex);
- if (GetPreviousItemPosition(itemPos, itemPos))
+ while (GetPreviousItemPosition(itemPos, itemPos))
{
if (__pTableView->GetTableViewStyle() == TABLE_VIEW_STYLE_SIMPLE)
{
{
ScrollToItem(itemPos.groupIndex, itemPos.itemIndex, TABLE_VIEW_SCROLL_ITEM_ALIGNMENT_BOTTOM);
}
- }
- else
- {
- if (__pTableView != null)
+
+ if (pItem->GetEnableState())
{
- __pTableView->SetFocused(true);
- __pTableView->DrawFocus();
+ pItem->SetFocused(true);
+ pItem->DrawFocus();
+ break;
}
- break;
}
}
else
pParentControl->DrawFocus();
break;
}
-
- pItem = FindItem(itemPos);
- if (pItem != null)
- {
- if (pItem->GetEnableState())
- {
- pItem->SetFocused(true);
- pItem->DrawFocus();
- }
- }
}
break;
if (pItem != null)
{
pItem->GetItemIndex(itemPos.groupIndex, itemPos.itemIndex);
- if (GetNextItemPosition(itemPos, itemPos))
+ while (GetNextItemPosition(itemPos, itemPos))
{
if (__pTableView->GetTableViewStyle() == TABLE_VIEW_STYLE_SIMPLE && itemPos.itemIndex == -1)
{
{
ScrollToItem(itemPos.groupIndex, itemPos.itemIndex, TABLE_VIEW_SCROLL_ITEM_ALIGNMENT_TOP);
}
- }
- else
- {
- if (__pTableView != null)
+
+ if (pItem->GetEnableState())
{
- __pTableView->SetFocused(true);
- __pTableView->DrawFocus();
+ pItem->SetFocused(true);
+ pItem->DrawFocus();
+ break;
}
- break;
}
}
else
pParentControl->DrawFocus();
break;
}
-
- pItem = FindItem(itemPos);
- if (pItem != null)
- {
- if (pItem->GetEnableState())
- {
- pItem->SetFocused(true);
- pItem->DrawFocus();
- }
- }
}
break;