Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Cba change

0 replies · 1,389 views · Started 24 December 2005

Hello all!
I am newbye in Symbian. Please, help in my trouble.
In my design I have 3 views with different CBA buttons.
Can I set another CBA (Button group) for my view? How can I switch its?
When I trying it device was crashed:
void CMyAppUi::Switch()
{
CEikButtonGroupContainer* newCba = CEikButtonGroupContainer::NewL(CEikButtonGroupContainer::EView,
CEikButtonGroupContainer::EVertical,
this,
R_NEW_CBA);

iEikonEnv->AppUiFactory()->SwapButtonGroup(newCba);
}

Correct me, please!