×
Namespaces

Variants
Actions

Create your own button group

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: giridharn (18 May 2007)
Last edited: hamishwillee (30 Jul 2012)


Creating your own button group

//This is in your .rss file
RESOURCE CBA r_hello_bye
{
 
buttons ={
 
CBA_BUTTON {id = EHello;txt = "hello";},
CBA_BUTTON {id = EBye;txt = "Bye"; }
};
}
 
//in your .hrh file,declare these EHello and EBye
//in your .cpp file
 
//Include files
#include<eikbtgpc.h>
 
CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current();
if(cba)
{
cba->SetCommandSetL(R_HELLO_BYE);
cba->DrawNow();
}
 
//You can handle these button in your AppUi HandleCommandL() function
This page was last modified on 30 July 2012, at 13:33.
22 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×