×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    22

    problems with CBA buttons

    Up until now I have been changing the CBA buttons this way:
    CEikButtonGroupContainer* buttons = CEikButtonGroupContainer::Current();
    buttons->SetCommandSetL(R_NEW_BUTTONS);
    buttons->DrawNow();

    The problem arises when using a MultipageDialog and navigate through the different pages of the MultipageDialog (detected with PageChangedL), since I get an EIKCOCTL number 63 error (which according to the documentation: "CEikButtonGroupContainer::UpdateCommandObserverL() called with an updated observer already present". How should be the right way to set the CBA buttons then?

    Thank you in advance, zipher

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    RE: problems with CBA buttons

    Hi

    you could try this:
    ButtonGroupContainer().SetCommandL (0, DBut3,KTxtOptions);
    ButtonGroupContainer().SetCommandL (1, DBut5,KTxtSelected);
    ButtonGroupContainer().SetCommandL (2, DBut2,KTxtZoom);
    ButtonGroupContainer().SetCommandL (3, But0,KTxtExit);
    ButtonGroupContainer().DrawNow();

    the ButtonGroupContainer() is member of CEikDialog and return CEikButtonGroupContainer&.

    hope this helps

    yucca

Posting Permissions

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