
Originally Posted by
RaveendraB
thanks Ziteng for quick reply. the statement you sent is change the text color itself. but my requirement is to change the color of highlighted rectangle over the text. by default color of the rect is blue and i want to change it to orange color.
Hi,
I'm sorry, I think I was too tired to read it clearly enough to understand it.
To my understanding the highlighted rect is a kind of skin, not pure color.
You can override the skin by the following code:
Code:
// override the center part of the skin
_LIT(KMbmFile, "z:\\resource\\apps\\Tdjgmcqe.mbm");
MAknsSkinInstance* skin = AknsUtils::SkinInstance();
CAknsItemData* item = skin->GetCachedItemData(KAknsIIDQsnFrListCenter);
if(item==NULL)
{
item = skin->CreateUncachedItemDataL(KAknsIIDQsnFrListCenter);
}
if(item->Type()==EAknsITMaskedBitmap)
{
CAknsItemDef* def = AknsUtils::CreateMaskedBitmapItemDefL(KAknsIIDQsnFrListCenter, KMbmFile, EMbmTdjgmcqeListboxitemhightlightcenter, EMbmTdjgmcqeListboxitemhightlightcentermask);
skin->SetLocalItemDefL(def);
}
Note that the listbox item highlight skin consists of nine parts, every part is identified by an ID like the KAknsIIDQsnFrListCenter. You can find the definition of the IDs in the system header file "AknsConstants.h".
See the example:
"Tdjgmcqe(ListBoxItemHighlight).zip"
http://wiki.forum.nokia.com/index.ph...ghlight%29.zip
The example is just a concept verfication and is given with no guarantee that it has no bugs.
Regards
Ziteng Chen