I have an element TImageObjectAppearance in which the picture with a plus is loaded. There is a TTextObjectAppearance element that I plan to use as a counter. Ie clicked on the TImageObjectAppearance element and then added +1 to the TTextObjectAppearance element. I do not know how to implement this?
Details on the picture. (ItemAppearance=DynamicAppearance).
Thanks.
- Code: Select all
void __fastcall TForm1::ListView1ItemClickEx(TObject * const Sender, int ItemIndex,
const TPointF &LocalClickPos, TListItemDrawable * const ItemObject)
{
if(ItemObject == NULL)
{
return;
}
if(ItemObject->Name == L"add" && ItemObject->InheritsFrom(__classid(TListItemImage)))
{
//how found TTextObjectAppearance with name TextCount?
}
}