Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2008

    CEikCommandButton::SetCommandL problem

    I have to add a (play) button in my application. I have added a button using CEikCommandButton.

    HTML Code:
    iButton = new(ELeave) 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:

    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.


  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: CEikCommandButton::SetCommandL problem

    Only 4 arguments, you might have considered checking them for yourself...

    Anyway, you probably wanted to write &KTest ("const TDesC16 *operator &() const;" of TLitC) - if it does not work, &KTest().

  3. #3
    Registered User
    Join Date
    Mar 2008

    Re: CEikCommandButton::SetCommandL problem

    Hey thanx... I was just thinking abt the bitmap that's why I was thinking that only..... so stupid of me....!!!

    One more help can u tell

    1.When to use "AddCommandToStackL" (or name of some documents that gives explanation)

    2. On button click the play should work for that I have to add code in "OfferKeyEventL()", for that how to set button name I mean

    HTML Code:
    switch (aKeyEvent.iCode)
      case buttonname:

Similar Threads

  1. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  2. netcards - Problem with opening adapter
    By kernj in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-01-10, 08:56
  3. WAP service problem on Apache
    By bigg_o in forum Browsing and Mark-ups
    Replies: 3
    Last Post: 2005-04-17, 16:05
  4. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts