Hi all
Actually i have declared CAknSingleGraphicStyleListBox* iList.i can also draw image & text.but problem is i have to reduced image size of that list icon;
How i can do it.please response quickly if possible
With Regards
Jobayer
Hi all
Actually i have declared CAknSingleGraphicStyleListBox* iList.i can also draw image & text.but problem is i have to reduced image size of that list icon;
How i can do it.please response quickly if possible
With Regards
Jobayer
You should actually not need to do anything with teh size, instead you should load the icon with AknsUtils, and do not set any size to the icons, then they will be automatically set to the correct size when used with CAkn.. listboxes.
Thanks Sir Yaccua for reply
So is it possible to reduce icon size of a listBox.
Thanks Sir Yaccua for reply
So is it possible to reduce icon size of a listBox.
If possible how can.
I would assume so, at least if you use mbm images and use normal loading for them (i.e. not loading with AknsUtils), anyway, since the screen size are different, the actual required size would be different, thus I would recommend using the normal sizes that listboxes would want to use.
You could also try loading the icons with AknsUtils, and then setting the size, and experimenting whether the listboxes would then not automatically resize the icons.
_LIT(LitFileName, "\\resource\\apps\\todo_svg.mif");
fileName = LitFileName;
CFbsBitmap* appIconBitmap = NULL;
CFbsBitmap* appIconMask = NULL;
TSize picture_size(5,5);
for( i = 0 ; i < total_image ; i++ )
{
appIconBitmap = NULL;
appIconMask = NULL;
AknIconUtils::CreateIconL( appIconBitmap
, appIconMask
, fileName
, iconId
, iconId + 1);
AknIconUtils::SetSize( appIconBitmap, picture_size );
AknIconUtils::SetSize( appIconMask, picture_size );
CleanupStack::PushL( appIconBitmap );
CleanupStack::PushL( appIconMask );
iconArray->AppendL( CGulIcon::NewL( appIconBitmap, appIconMask ) );
CleanupStack::Pop(2); // bitmap, mask
iconId = iconId + 2;
}
i am also changing icon size but not working where is my fault can u tell me.
Thanks Yccua.
I usually let the lists do the scaling by them selves, anyway, could indeed be that the list wants always do the resizing, anyway, you could maybe try out using mbm, and loading them with CFbsBitmap or CGulIcon functions without the AknIconUtils API, then they should not be re-sizeable at least AFAIK.