Discussion Board
Creating a CBA
2001-12-10, 16:52
#1
Registered User
How can I take Command Button Area (CBA) to use in my application?
RE: Creating a CBA
2001-12-10, 17:23
#2
Regular Contributor
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
Forum Rules