×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    10

    How to dynamicall change cba button in container

    Hi all,
    I need to change cba button dynamically in a container, I am using the following code to change it dynamicall but it is not working, can any one help me how to get it worked?

    CEikButtonGroupContainer *iCba ;
    iCba = CEikButtonGroupContainer::Current();
    if( iCba)
    {
    iCba->SetCommandSetL(R_CLAIM_BACK_NEXT);

    }

  2. #2
    Registered User
    Join Date
    May 2003
    Posts
    9

    re

    Hi

    I have placed the code I am using in a small function. Hope it will help you. I have placed the function in my view instead of the container.

    void CVykortView2::ChangeCbaL(TBool state)
    {
    CEikButtonGroupContainer* cba= CEikButtonGroupContainer::Current();
    if (state)
    {
    cba->SetCommandSetL(R_AVKON_SOFTKEYS_OK_CANCEL); //R_AVKON_SOFTKEYS_TEXT_SETTING_ITEM);

    }
    else if (!state)
    {
    cba->SetCommandSetL(R_AVKON_SOFTKEYS_SELECTION_LIST);

    }
    cba->DrawNow();
    }

    /Kummel

  3. #3
    Registered User
    Join Date
    Mar 2004
    Posts
    10

    SetCommandL works only once?

    Hi Kummel thanks for the reply,

    I am facing a problem by using it,

    I am activating the view more than once based on different conditions, first time SetCommandL() is working fine, but when I try to activate the view again, the previous cba button is not changing, i.e., SetCommandL() is not working..

    Can you help me how to overcome this problem?

    hareesh.

Posting Permissions

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