×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2008
    Location
    Lappeenranta
    Posts
    9

    Options Menu Calling

    Hello.

    I'm showing an options menu by calling it myself using the following command as a callback on button press
    Code:
    CEikonEnv::Static( )->AppUiFactory( )->LaunchPopupMenuL( 
                                        R_MENU, 
                                        pt, 
                                        EPopupTargetTopLeft, NULL, 
                                        (CEikAppUi*) CEikonEnv::Static( )->AppUi( ) );
    Menu shows, but there are some problems that I couldn't solve:

    1) CApplicationAppUi is used as a class for handling commands coming from button pressing. The first problem is that every button is handled twice.
    For example menu item "options" calls Options dialog. It opens, handles, but after leaving AppUi::HandleCommandL(...) method, it is called again with the same parameter.

    2) If I click anywhere except menu (it doesn't occupy all the screen), KERN-EXEC 3 panic is rised.

    3) Button, that calls this menu remains in "pressed" state.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: Options Menu Calling

    You could use CEikMenuBar::SetMenuTitleResourceId+TryDisplayingMenuBarL instead. AppUi factory has a MenuBar method, you can check if it returns something.

  3. #3
    Registered User
    Join Date
    Dec 2008
    Location
    Lappeenranta
    Posts
    9

    Re: Options Menu Calling

    I've tried to use
    Code:
                                CEikonEnv* env = CEikonEnv::Static( );
                                env->AppUiFactory( )->MenuBar( )->TryDisplayMenuBarL( );
    but still I've got a problem 2.

    When I click anywhere except menu, I receive KERN-EXEC 3. Just can't get any hints to solve a problem. this panic is rised outside my code.

Similar Threads

  1. Touch UI and pop-up menu options
    By nicholso in forum Mobile Java General
    Replies: 2
    Last Post: 2009-12-22, 10:56
  2. changing the default menu options in the media gallery
    By deepthis in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2005-11-10, 22:54
  3. scrollbars disappear after options menu selection
    By wapawapa in forum Symbian User Interface
    Replies: 0
    Last Post: 2004-11-29, 03:56
  4. Menu Options to download Midlet
    By fl45 in forum Mobile Java General
    Replies: 2
    Last Post: 2004-02-08, 22:41
  5. 6600 item commands & options menu
    By random_john_doe in forum Mobile Java General
    Replies: 0
    Last Post: 2003-12-10, 16:18

Posting Permissions

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