Discussion Board

Results 1 to 4 of 4
  1. #1
    Nokia Developer Champion somnathbanik's Avatar
    Join Date
    Dec 2008
    Posts
    2,272
    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 mayankkedia's Avatar
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146
    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 somnathbanik's Avatar
    Join Date
    Dec 2008
    Posts
    2,272
    I tried this
    aMenuPane->SetItemButtonState( My_ResourceId,EEikMenuItemSymbolOn );

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

  4. #4
    Super Contributor mayankkedia's Avatar
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146
    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. Problem With Changing Menu Icons
    By BabyBinky33 in forum Themes/Carbide.ui
    Replies: 0
    Last Post: 2009-02-10, 19:52
  3. 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
  4. Adding Menu Button Items in 9300
    By Maribou in forum General Messaging
    Replies: 2
    Last Post: 2007-02-22, 09:05
  5. 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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved