Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    393

    How to add a menu item in the Options menu of a Nokia 7650 ?

    Can anyone give me any tips on how to go about doing that?
    Cheers,
    Nitin

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    65

    RE: How to add a menu item in the Options menu of a Nokia 7650 ?

    hi, you have to add it like this in .rss -file.

    RESOURCE MENU_PANE r_TESTPROGRAM_menupane_mainview
    {
    items =
    {
    MENU_ITEM
    {
    command = ECBACommandThird;
    txt = "Third";
    },
    MENU_ITEM
    {
    command = ECBACommandSecond;
    txt = "Second";
    },
    MENU_ITEM
    {
    command = ECBACommandFirst;
    txt = "First";
    },
    MENU_ITEM
    {
    command = EAknCmdExit;
    txt = "Exit";
    }
    };
    }

    -Pete

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    65

    RE: How to add a menu item in the Options menu of a Nokia 7650 ?

    Hi, I am new at this Symbian thing too. :-) Well the .rss -files are files where you add your recourses to your application. If you do something like listboxes or menus or something like this you can put it to .rss files. When you have a recourse file you can get all items from there by calling readrecourse -method or something like that. If you have the file, but it doesn't appear look at project file there must be the line like "RESOURCE ..\data\filename.rss". The project file is .mmp -file. I can give you one example about your recourse file here:

    // RESOURCE IDENTIFIER
    NAME GMMA

    // INCLUDES
    #include <eikon.rh>
    #include <eikon.rsg>
    #include <avkon.rsg>
    #include <avkon.rh>
    #include <avkon.mbg>
    #include "test.hrh"
    #include "test.loc"

    // RESOURCE DEFINITIONS

    RESOURCE RSS_SIGNATURE
    {
    }

    RESOURCE TBUF
    {buf = "test";}

    RESOURCE EIK_APP_INFO
    {
    }

    RESOURCE TBUF40 r_formatstring_info
    {
    buf = qtn_formatstring_info;
    }

    RESOURCE AVKON_VIEW r_test_mainview
    {
    menubar=r_test_menubar_mainview;
    cba=r_test_softkeys_menu_exit;
    }

    RESOURCE TBUF256 r_test_label_mainview
    {
    buf = qtn_test_label_mainview;
    }

    RESOURCE CBA r_test_softkeys_menu_exit
    {
    buttons =
    {
    CBA_BUTTON
    {
    id = EAknSoftkeyOptions;
    txt = "Menu";
    },
    CBA_BUTTON
    {
    txt = "";
    }
    };
    }

    RESOURCE MENU_BAR r_test_menubar_mainview
    {
    titles =
    {
    MENU_TITLE
    {
    menu_pane = r_test_menupane_mainview;
    txt = "";
    }
    };
    }

    RESOURCE MENU_PANE r_test_menupane_mainview
    {
    items =
    {
    MENU_ITEM
    {
    command = ECBACommandOne;
    txt = "One";
    },
    MENU_ITEM
    {
    command = ECBACommandTwo;
    txt = "Two";
    },
    MENU_ITEM
    {
    command = ECBACommandThree;
    txt = "Three";
    },
    MENU_ITEM
    {
    command = EAknCmdExit;
    txt = "Exit";
    }
    };
    }

    In this case I don't have the "back" button in program. There is meny examples in Nokia's SDK for this one. In every program that I have seen has one .rss -file.

    -Pete

  4. #4
    Registered User
    Join Date
    Dec 2004
    Location
    Beijing
    Posts
    7
    Hi Pete,
    Your reply is what I'm looking for. But my problem is where to find these materials other than this forum? I can't even find the documents on how the rss file is structured, what's the detailed meaning of each field and their possible values. So please tell me if you have a problem, WHERE DO YOU BEGIN WITH? Search this forum? My project just can't wait that long.
    Thanks & have a nice day.
    toon

  5. #5
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    68
    Have a look at the "HelloWorldPlus" example from the SDk documentation. It discusses what you have to do to add a menu option, and what files you have to edit.

  6. #6
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    I can't even find the documents on how the rss file is structured, what's the detailed meaning of each field and their possible values
    well, that's the way it is. Unfortunately there is no really detailed desription. You must take the information from various examples, forums, and books. I'm missing this resource documentation too..:-(

Posting Permissions

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