×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    27

    help on Menubar Creation.

    Hello friends,

    I have created menu in rss as :
    /*********************************/
    // Praveen Added on 15/4/08

    // -----------------------------------------------------------------------------
    //
    // r_myshareview_menubar
    // My Share View menubar
    //
    // -----------------------------------------------------------------------------
    //
    RESOURCE MENU_BAR r_myshareview_menubar
    {
    titles =
    {
    MENU_TITLE { menu_pane = r_myshareview_menu; }
    };
    }


    // -----------------------------------------------------------------------------
    //
    // r_myshareview_menu
    // Menu for "Options"
    //
    // -----------------------------------------------------------------------------
    //
    RESOURCE MENU_PANE r_myshareview_menu
    {
    items =
    {
    // added the new Options menu command here
    MENU_ITEM
    {
    command = EmyShareView_View;
    txt = qtn_EmyShareView_view;
    },
    MENU_ITEM
    {
    command = EmyShareView_Edit;
    txt = qtn_EmyShareView_Edit;
    },
    // Praveen added my Status menu item 8/04/08

    MENU_ITEM
    {
    command = EmyShareView_My_Share_Buddies;
    txt = qtn_myShareView_My_Share_Buddies;
    }

    };
    }
    //------------------- Menu ForMy Share View------------------------------
    //

    // Praveen End 15/4/08
    // --
    /********************************/

    and i am calling it in constructor as below:

    void CMyShareView::ConstructL(CClient *aConnection,TInt aResourceId)
    {
    //this->ConstructL(R_MYSHAREVIEW_MENU);
    //CreateMenuBarL(R_MYSHAREVIEW_MENU);
    PrepareLC(aResourceId);
    CAknDialog::ConstructL(R_MYSHAREVIEW_MENU);
    }

    But still i am not able to see the menu bar at run time.

    Please help.
    Regards,
    Praveen.

  2. #2
    Regular Contributor
    Join Date
    Jun 2003
    Location
    Jakarta, Indonesia
    Posts
    164

    Re: help on Menubar Creation.

    MENU_BAR resources must link to menubar item on AVKON_VIEW RESOURCE. See below :

    RESOURCE AVKON_VIEW r_my_view
    {
    menubar = r_my_view_menubar;
    cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
    }

    RESOURCE MENU_BAR r_my_view_menubar ...


    Regards,



    Herwin

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    27

    Re: help on Menubar Creation.

    Hello Hervin Thanks for reply .

    Now I am using dialogs in my application throughout and I can not use view as multi view arcitecture can not be used as per requirment specification only dialogs .And The menu bar is displayed in application through construtL method on other dialogs . But only in this it is not viewing.
    Can you give me alternate solution using dialog only or suggest the possible cause of problem.
    waiting for reply ....
    Thanks.
    Regards
    Praveen.


    Quote Originally Posted by WinHw View Post
    MENU_BAR resources must link to menubar item on AVKON_VIEW RESOURCE. See below :

    RESOURCE AVKON_VIEW r_my_view
    {
    menubar = r_my_view_menubar;
    cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
    }

    RESOURCE MENU_BAR r_my_view_menubar ...


    Regards,



    Herwin

  4. #4
    Regular Contributor
    Join Date
    Jun 2003
    Location
    Jakarta, Indonesia
    Posts
    164

    Re: help on Menubar Creation.

    Hmmm, it's looks like impossible to do that since the RESOURCE DIALOG don't have a link to the RESOURCE MENU_BAR. Maybe you can't create a custom control which looks like a dialog.

    Regards,



    Herwin

Similar Threads

  1. Opening a MenuBar from CeikDialog. Menubar does not gain focus.
    By jkekoni in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-05-11, 11:10
  2. Content creation tools.
    By DavidTimperley in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2006-01-29, 21:49
  3. Content creation tools.
    By DavidTimperley in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2006-01-29, 21:46
  4. Fullscreen : Menubar
    By Vextorin in forum Symbian
    Replies: 1
    Last Post: 2004-07-11, 15:00
  5. CBA and Menubar on Series60 question...
    By dchiaramello in forum Symbian User Interface
    Replies: 2
    Last Post: 2004-03-31, 08:29

Posting Permissions

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