×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    140

    How to set both LSK and RSK options?

    hello,

    I want to implement that when clicking LSK, one menu_pane is poped up, also when clicking RSK, another menu_pane is poped up. but how can I do that? my segment of code is following:

    Code:
    RESOURCE AVKON_VIEW r_view_one
        {
        menubar = r_view_roster_menubar;
        cba = r_view_roster_cba;
        }
    
    RESOURCE CBA r_view_roster_cba
    {
    buttons =
    	{
    	CBA_BUTTON { id = EAknSoftkeyOptions; txt = STRING_r_cba_options; },
    	CBA_BUTTON { id = EAknSoftkeyOptions; txt = STRING_r_cba_menus; }
    	};
    }
    RESOURCE MENU_BAR r_view_roster_menubar
    {
        titles =
        {
            MENU_TITLE
            {
                menu_pane = r_view_roster_menu;
            },
            MENU_TITLE
            {
                menu_pane = r_view_roster_menu2;
            }
            
        };
    }
    RESOURCE MENU_PANE r_view_roster_menu
        {
        items =
            {
                MENU_ITEM
                {
                    command = ...;
                    txt = ...;
                },
                 MENU_ITEM
                {
                    command = ...;
                    txt = ...;
                },
    ...
            };
        }
    RESOURCE MENU_PANE r_view_roster_menu2
        {
        items =
            {
                MENU_ITEM
                {
                    command = ...;
                    txt = ...;
                },
                 MENU_ITEM
                {
                    command = ...;
                    txt = ...;
                },
    ...
            };
        }
    when I use the above segment of code, the same menu_pane named "r_view_roster_menu2" is poped up when clicking LSK and RSK, another menu_pane named "r_view_roster_menu" is never shown.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: How to set both LSK and RSK options?

    Just assign your own command into the button, and handle it in your command handling function, and in there you could use menu-styel pop-up list for example to show the options.

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    140

    Smile Re: How to set both LSK and RSK options?

    Quote Originally Posted by symbianyucca View Post
    Just assign your own command into the button, and handle it in your command handling function, and in there you could use menu-styel pop-up list for example to show the options.
    yeah, I am tring implementing it with the pop-up list, but is there any other ways to implement this?

    thanks.

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

    Re: How to set both LSK and RSK options?

    You can have an own CEikMenuBar, and invoke TryDisplayMenuBarL on it. You can also do that with the "default" menu, check if CEikonEnv::AppUiFactory+MEikAppUiFactory::MenuBar returns something existing (not NULL). If yes, you can SetMenuTitleResourceId+TryDisplayMenuBarL.

  5. #5
    Registered User
    Join Date
    Mar 2008
    Posts
    140

    Smile Re: How to set both LSK and RSK options?

    Quote Originally Posted by wizard_hu_ View Post
    You can have an own CEikMenuBar, and invoke TryDisplayMenuBarL on it. You can also do that with the "default" menu, check if CEikonEnv::AppUiFactory+MEikAppUiFactory::MenuBar returns something existing (not NULL). If yes, you can SetMenuTitleResourceId+TryDisplayMenuBarL.
    with your hint, I find the link http://www.newlc.com/topic-12882, thanks.

Similar Threads

  1. How to set LSK and RSK in desktop?
    By wiso33 in forum Symbian
    Replies: 5
    Last Post: 2009-09-07, 08:35
  2. LSK and RSK disappear after Capturekey
    By somowo in forum Symbian
    Replies: 5
    Last Post: 2008-12-02, 01:48
  3. Regarding EEventKey for LSK and RSK
    By kkrish in forum Symbian User Interface
    Replies: 5
    Last Post: 2008-10-12, 10:30
  4. LSK RSK problem in samsung X497
    By rak_eshz in forum Mobile Java General
    Replies: 1
    Last Post: 2007-02-10, 06:09
  5. LSK on 3650/7650/Series 60
    By rapix in forum Mobile Java General
    Replies: 14
    Last Post: 2003-09-10, 20:35

Posting Permissions

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