×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Nokia Developer Champion
    Join Date
    Dec 2008
    Posts
    2,357

    problem in changing the status of the radio button in menu items on runtime

    Hi,
    I am a new Symbian developer, and trying to create UI through code. I am able to create the radio button using
    flags = EEikMenuItemRadioStart in .rrs file but want to change the status of the radio button on run time. If any one could help me in this case. Thanks in advance.

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: problem in changing the status of the radio button in menu items on runtime

    Do something like this in the DynInitMenuPaneL of your view :-

    Code:
    if(aResourceId == /*Your radio menu id*/)
     {
     aMenuPane->SetItemButtonState(/*Your Command Id*/, EEikMenuItemSymbolOn);
     }
    To switch on a radio option, since its a radio button only one selection at a time would be allowed, so the earlier selected item would get unselected calling this.
    Cheers,
    Mayank

  3. #3
    Nokia Developer Champion
    Join Date
    Dec 2008
    Posts
    2,357

    Re: problem in changing the status of the radio button in menu items on runtime

    I tried this
    aMenuPane->SetItemButtonState( My_ResourceId,EEikMenuItemSymbolOn );

    but I cannot change the radio button option randomly. Please help me.

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: problem in changing the status of the radio button in menu items on runtime

    It should be your CommandId i.e. the command id of the radio button command from the .rssi file.

    What do you mean randomly change, please clarify.
    Cheers,
    Mayank

Similar Threads

  1. menu and sub menu problem
    By vinayakak in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-02-12, 12:16
  2. How to add Menu Items to a Button of a Dialog?
    By jennie in forum Symbian User Interface
    Replies: 8
    Last Post: 2007-08-28, 08:24
  3. Adding Menu Button Items in 9300
    By Maribou in forum General Messaging
    Replies: 2
    Last Post: 2007-02-22, 09:05
  4. PJava runtime problem within Nokia 9210, Hrlp~!
    By Nokia_Archive in forum PersonalJava
    Replies: 1
    Last Post: 2002-05-28, 13:15

Posting Permissions

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