I'm showing an options menu by calling it myself using the following command as a callback on button press
Menu shows, but there are some problems that I couldn't solve:
CEikonEnv::Static( )->AppUiFactory( )->LaunchPopupMenuL(
(CEikAppUi*) CEikonEnv::Static( )->AppUi( ) );
1) CApplicationAppUi is used as a class for handling commands coming from button pressing. The first problem is that every button is handled twice.
For example menu item "options" calls Options dialog. It opens, handles, but after leaving AppUi::HandleCommandL(...) method, it is called again with the same parameter.
2) If I click anywhere except menu (it doesn't occupy all the screen), KERN-EXEC 3 panic is rised.
3) Button, that calls this menu remains in "pressed" state.