×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    47

    CAknToolbar items count

    I cannot set two buttons on CAknToolbar. It always shows three buttons. Where is my mistake?

    Code:
    (*aToolbar) = CAknToolbar::NewL(R_EMPTY_TOOLBAR);
    
    (*aToolbar)->AddItemL( iCallback->CreateToolbarButton(aLeftIcon, EFalse), EAknCtButton, 
         aLeftCommandId, 0, 0 );
    (*aToolbar)->AddItemL( iCallback->CreateToolbarButton(aCenterIcon, EFalse), EAknCtButton, 
         aCenterCommandId, 0, 1 );
    Right button is always dublicate of central.

  2. #2
    Nokia Developer Champion
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: CAknToolbar items count

    Ideally it should work, assuming your resource "R_EMPTY_TOOLBAR" is really empty. You can also try to create toolbar from resource.

Similar Threads

  1. CAknToolbar in Belle
    By singh.parminder02 in forum Symbian User Interface
    Replies: 3
    Last Post: 2012-04-05, 11:54
  2. a problem about CAknToolbar
    By schmeichel in forum Symbian C++
    Replies: 0
    Last Post: 2010-10-09, 10:15
  3. CAknToolbar and dialog
    By mobifunsoft in forum Symbian User Interface
    Replies: 0
    Last Post: 2009-04-05, 07:49
  4. How can i use CAknToolbar Control
    By mit@indianic.com in forum Symbian User Interface
    Replies: 11
    Last Post: 2009-03-03, 21:30
  5. How to count items in a Listbox?
    By ngabordh in forum Symbian User Interface
    Replies: 2
    Last Post: 2004-03-29, 10:12

Posting Permissions

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