×

Discussion Board

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

    CheckBox MenuItem

    hi everyone,
    i got problem with checkbox menu item
    I declared this in resource:

    Code:
    RESOURCE MENU_PANE r_autoshare_menu
        {
        items=
            {
            MENU_ITEM { command=EMP3PlayerCmdAutoshareOn;  txt="On";  flags = EEikMenuItemCheckBox;},
            MENU_ITEM { command=EMP3PlayerCmdAutoshareOff;  txt="Off"; flags = EEikMenuItemCheckBox;}
            };
        }
    and code:
    Code:
    		if (iAutoShare)
    			{
    			aMenuPane->SetItemButtonState(EMP3PlayerCmdAutoshareOn,
    					EEikMenuItemSymbolOn );
    			aMenuPane->SetItemButtonState(EMP3PlayerCmdAutoshareOff,
    					EEikMenuItemSymbolIndeterminate );
    			}
    		else
    			{
    			aMenuPane->SetItemButtonState(EMP3PlayerCmdAutoshareOn,
    					EEikMenuItemSymbolIndeterminate );
    			aMenuPane->SetItemButtonState(EMP3PlayerCmdAutoshareOff,
    					EEikMenuItemSymbolOn);
    			}
    it worked fine in emulator,
    but in real device (N95) it not work, when i select menu, it stay on screen and doesn't vanish till i switch to another view, just 2 above menuitem On/Off still on screen, all other menu will disappear after i select.
    On emulator it worked fine, it turn checkbox to On/off properly and disappear. can some one help me resolve this
    Thankyou very much

  2. #2
    Regular Contributor
    Join Date
    Jun 2009
    Posts
    179

    Re: CheckBox MenuItem

    Can you explain the problem a bit clearly where you are finding the problem. The last part is not clear. You want after selecting the menu the menu pane should go or something else

  3. #3
    Registered User
    Join Date
    Jul 2009
    Posts
    22

    Re: CheckBox MenuItem

    All this situation:

    on real device, when i select a menu item (On/Off) Menu item still stay on screen. It must be vanish.
    normally, when you select a menu item if it hasn't submenu, it will perform some function and disappear. But with this On/Off menu, it stay on screen, doesn't vanish. Mean you still have 2 menu items on screen, this is bad

  4. #4
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,036

    Re: CheckBox MenuItem

    try calling DrawNow() after you select any menu item.

  5. #5
    Registered User
    Join Date
    Jul 2009
    Posts
    22

    Re: CheckBox MenuItem

    Quote Originally Posted by vineet.jain View Post
    try calling DrawNow() after you select any menu item.
    Thankyou. It still problem.
    But when i change it to submenu of first menu, it will be ok, dont know why.
    It just problem when it is submenu of a submenu.
    Last edited by 3kworld; 2009-10-14 at 14:38.

Similar Threads

  1. Not able to select Checkbox from PointerEvent
    By gopishkumar in forum Symbian User Interface
    Replies: 3
    Last Post: 2010-08-04, 07:59
  2. Replies: 2
    Last Post: 2009-08-15, 10:28
  3. Is there a way to add a checkbox & label together in list.
    By smanikandan14 in forum Symbian User Interface
    Replies: 8
    Last Post: 2008-10-27, 15:02
  4. plzzz help checkbox setting item
    By harish13_ks in forum Symbian
    Replies: 0
    Last Post: 2007-03-22, 15:30
  5. Popup message w/an optional checkbox?
    By inc0gn1t007 in forum Symbian User Interface
    Replies: 5
    Last Post: 2006-06-14, 11:56

Posting Permissions

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