Hi,
I have to add a (play) button in my application. I have added a button using CEikCommandButton.
The button is displayed properly. Now I have to add a command to that particular button, I have tried using "SetCommandL" but then it requires bitmap and mask, presently I dont want to use bitmap and mask, so I have set it to NULL, but then it gives error.HTML Code:iButton = new(ELeave) CEikCommandButton(); iButton->SetContainerWindowL(*this); _LIT(KTest,"Play"); iButton->SetTextL(KTest); iButton->SetExtent(TPoint(20,20),TSize(60,22));
HTML Code:iButton->SetCommandL(ESoundCmdPlay,KTest,NULL,NULL);
Errors are :
'CEikCommandButton::SetCommandL(int, const TDesC16 *, const CFbsBitmap *, const CFbsBitmap *)' (non-static)
function call '[CEikCommandButton].SetCommandL(TSoundCommands, {lval} const TLitC<5>, int, int)' does not match
I dont want to use bitmap, how to add a command to button withoud using bitmap and mask.
Thanks.



