×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    5

    Global menu in multi view application

    Perhaps this is a newbie question but after extensive search on Google I haven't found any usefull info.
    I have created multiview application using Carbide uidesigner. I have added menu items specific for every view and these items appear only when that specific view is visible. I have also found and implemented code that handles menu items selection in View or AppUI. But, I want to add global menu items that are visible in all views. Is this possible using uidesigner? I assumed that adding menu to application.uidesign would do exactly that but menu items added here do not appear anywhere?! I am certain I got something completely wrong here.

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Posts
    1,009

    Re: Global menu in multi view application

    Place the CBA and Menubar in the below mention resource in .rss file , hope it would help.
    RESOURCE EIK_APP_INFO
    {
    menubar = r_menubar;
    cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
    }
    Regards,
    Shafali

  3. #3
    Registered User
    Join Date
    Jul 2003
    Posts
    5

    Re: Global menu in multi view application

    Hm, logical thing to do. I edited .rss file as this:

    RESOURCE EIK_APP_INFO r_application_sensor_analyzer_app_ui
    {
    menubar = r_application_main_menu; // I MANUALLY ADDED THIS LINE SINCE UIDESIGNER DIDN'T EVEN WHEN I ADDED MENU
    cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
    status_pane = r_application_status_pane;
    }

    Menubar exists in the same .rss file as:

    RESOURCE MENU_BAR r_application_main_menu
    {
    titles =
    {
    MENU_TITLE
    {
    menu_pane = r_application_menu_pane1_menu_pane;
    }
    };
    }
    RESOURCE MENU_PANE r_application_menu_pane1_menu_pane
    {items =
    {
    MENU_ITEM
    {
    command = ESensorAnalyzerApplicationStaniMenuItemCommand;
    txt = STR_SensorAnalyzerApplication_12;
    }
    };

    }

    I checked .rss files for views and found that they all include menubar line. Therefore I expected that adding this line would work, but still nothing. Only view specific menus are shown.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Global menu in multi view application

    View resource does not complete the appinfo, but overrides it. In this particular case UI Designer is not dumb, it just can not do miracles.
    You can still experiment with implementing DynInitMenuPaneL, and invoking AddMenuItemsL from there, with your common set of menu items.

  5. #5
    Registered User
    Join Date
    Jul 2003
    Posts
    5

    Re: Global menu in multi view application

    This clears up a lot of things. Thank you for your reply. It seemed logical that AppUI would contain global menu and Views their own specific menus. Guess not. It is easier to add global items to each view's menu and handle them in appui.

Similar Threads

  1. Replies: 14
    Last Post: 2008-12-03, 10:22
  2. Access SIM ToolKit Application Menu
    By chaggudog in forum Mobile Java General
    Replies: 0
    Last Post: 2008-11-26, 20:02
  3. dynemic menu
    By pankaj gupta55 in forum Symbian
    Replies: 1
    Last Post: 2008-09-20, 11:33
  4. Application without icon in application menu
    By iulian_moldovan in forum Symbian
    Replies: 3
    Last Post: 2006-12-14, 09:38
  5. Menu in CCoeControl derived view
    By Juggle4Evr1 in forum Symbian User Interface
    Replies: 5
    Last Post: 2003-04-29, 15:37

Posting Permissions

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