
Originally Posted by
axsm
I guess in this case the sequence of steps will be just the same, except that you'll be using your own softkey resource:
if ( enableButtons )
{
cba->SetCommandSetL( R_YOUR_APPLICATION_CBA_BUTTONS_SET );
cba->DrawNow();
}
else
{
cba->SetCommandSetL( R_AVKON_SOFTKEYS_EMPTY );
cba->DrawNow();
}
I tried this way
Appui.cpp
Code:
Constl()
{
...
CEikButtonGroupContainer* cba = CAknAppUi::Cba();
if ( cba != NULL )
{
cba->SetCommandSetL( R_AVKON_SOFTKEYS_EMPTY );
cba->MakeVisible( EFalse );
cba->DrawNow();
}
...
the above code helps me to display the app in full screen when it starts. Now at a sertain point of time when the app is running I want to display the menu bar. do I did in this way
Code:
void CMusicalAlarmAppUi::ShowMenuBar()
{
CEikButtonGroupContainer* cba = CAknAppUi::Cba();
if ( cba != NULL )
{
cba->SetCommandSetL( R_AVKON_SOFTKEYS_OPTIONS_EXIT );
cba->MakeVisible( ETrue );
cba->DrawNow();
}
}
but not able to display the menu bar.
Any one please suggest me. I am trying this for a long time.