hi,
all,i have made a resource which is used in many views.
in some views i don't want to show some cba button like back.
please anybody tellme how i can made this change without modifying my resource. can i make it through code.
thanks
kishore
hi,
all,i have made a resource which is used in many views.
in some views i don't want to show some cba button like back.
please anybody tellme how i can made this change without modifying my resource. can i make it through code.
thanks
kishore
You can search for CBA in the Wiki.
One way to do the things you want to do is like this
You can create different CBA in the resource file. You can change the cba used at runtime.
You can use
CEikButtonGroupContainer* Cba = CEikButtonGroupContainer::Current();
if(Cba != NULL)
{
Cba->SetCommandSetL(R_AVKON_SOFTKEYS_OPTIONS_EXIT);
Cba->DrawNow();
}
You can use whichever cba settings you want to use than R_AVKON_SOFTKEYS_OPTIONS_EXIT.
I hope this helps in solving the problem.