×

Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Super Contributor
    Join Date
    Mar 2003
    Posts
    2,426

    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

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Posts
    2,426

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •