AppUiFactory->MenuBar() does not work
We had same kind of a problem
We tried to change the menubar dynamically way it was explained in the docs:
iEikonEnv->AppUiFactory->MenuBar()->SetMenuTitleResourceId(R_AKNTODO_MENUBAR_MAIN);
Result: Emulator crashed all the time. We did some drop-game
and found that MenuBar() method
don't return pointer to the CEikMenuBar.
What can cause this? Any ideas?
Posted by Harri Pohjosaho, hpo@sunpoint.net
on April 25, 2002 at 16:16
RE: AppUiFactory->MenuBar() does not work
Posted by Forum_Nokia Developer_Support, communicator.developer@nokia.com
on April 25, 2002 at 18:52
Have you set a default initial menubar in your resource file? At the start of the resource file you must supply the 'menubar=' part of EIK_APP_INFO or no menubar will be created, and you will get NULL when accessing MenuBar()
Eg:
RESOURCE EIK_APP_INFO
{
cba=r_myapp_cba;
menubar=r_myapp_menu;
hotkeys=r_myapp_hotkeys;
}
Regards,
FN Developer Support