×

Discussion Board

Results 1 to 2 of 2

Thread: Creating a CBA

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    25

    Creating a CBA

    How can I take Command Button Area (CBA) to use in my application?

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    157

    RE: Creating a CBA

    The easiest way to add a CBA to your application is to declare it in the resources.

    RESOURCE EIK_APP_INFO
    {
    cba=r_mainview_cba;
    }

    RESOURCE CBA r_mainview_cba
    {
    buttons=
    {
    CBA_BUTTON
    {
    txt="Accept";
    id=EProceed;
    },
    CBA_BUTTON
    {
    txt="";
    id=EEikBidBlank;
    },
    CBA_BUTTON
    {
    txt="";
    id=EEikBidBlank;
    },
    CBA_BUTTON
    {
    txt="Close";
    id=EEikCmdExit;
    }
    };
    }

    In the application code you can access CBA through CEikButtonGroupContainer interface. For example, "Accept" button in CBA above, can be dimmed as follows:

    CEikButtonGroupContainer* buttonGroupContainer=CEikButtonGroupContainer::Current();
    buttonGroupContainer->DimCommand(EProceed,ETrue);

Posting Permissions

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