I am creating icons to show them as buttons on the view. For example These buttons could be something like play, forward and rewind buttons of a player.


I am creating the icons in the following manner but the icons are not visible in the view. I want to create 12 icons i.e in 4 x 3 fashion.

1) I had created bitmaps and created .mbm and .mbg file.
2)in ConstructL() of the container i am doing this
ibitmap1 = new (ELeave) CFbsBitmap();
iMask1 = new (ELeave) CFbsBitmap();
ibitmap2 = new (ELeave) CFbsBitmap();
iMask2 = new (ELeave) CFbsBitmap();
.
.
.
.
.
.
.
ibitmap12 = new (ELeave) CFbsBitmap();
iMask12 = new (ELeave) CFbsBitmap();
TInt retVal = ibitmap1->Load(pbuf,EMbmDemo_mbmList_icon);
retVal = ibitmap2->Load(pbuf,EMbmDemo_mbmMark_icon);

AknIconUtils::CreateIconL(ibitmap1, iMask1, KMbmFileName, EMbmDemo_mbmList_icon, EMbmDemo_mbmList_icon_mask);
AknIconUtils::CreateIconL(ibitmap2, iMask2, KMbmFileName, EMbmDemo_mbmMark_icon, EMbmDemo_mbmMark_icon_mask);
.
.
.
AknIconUtils::CreateIconL(ibitmap2, iMask2, KMbmFileName, EMbmDemo_mbmUnMark_icon, EMbmDemo_mbmUnMark_icon_mask);
AknIconUtils::SetSize(ibitmap1,TPoint(10,10));
AknIconUtils::SetSize(ibitmap2,TPoint(10,10));
.
.
.
AknIconUtils::SetSize(ibitmap12,TPoint(10,10));

.
In addtion to this do i need to handle anything else to draw the icons on the view. I want to handle certain commands based on the icons that i select. How to achieve this.
Please reply me in case if u have any idea about this.
Thanks