×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    10

    Menu and CBA in settings page

    Hi everybody!

    Please help me!
    I have a menu bar in settings page of setting list box. How can I handle this menu commands?

    Code:
    RESOURCE AVKON_SETTING_PAGE r_texteditor_card_number
    {
    	label="Card number";
    	type = EEikCtEdwin;
    	editor_resource_id = r_numericeditor;
    	hint_text="Enter your card number here";
    	softkey_resource = r_softkeys_card_ok;
    	menubar = r_menubar_card_number;
    }
    Setting list box creation code:

    Code:
    void CMyView::DoActivateL(...)
    {
    	
        iListBox = new ( ELeave ) CAknExSettingListListbox;
        iListBox->SetData( iData );
        iListBox->SetMopParent( this );
        iListBox->ConstructFromResourceL( R_SETTING_LIST_BUDGET_REC );
    
        AppUi()->AddToStackL( *this, iListBox );
    	iListBox->SetRect( ClientRect() );
        iListBox->MakeVisible( ETrue );
        iListBox->ActivateL();
        iListBox->DrawNow();
    }
    As you can see there is CBA and Manu in list settings list's item. And I wand to handle their commands. By default they are handled with CAknSettingPage owned by CAknSettingItem. But CAknSettingPage that owns menubar doesn't handle user-defined commands and doesn't send them to any class =(. Please share any suggestions on this.

    About what I need to implement. I want user to enter card number to the editor of settings item. This number is too long to enter it every time. So I store them in array and want user to fill that editor with stored number that he choose from query listbox. This query list popup cold be called from the menu of setting item's page. What can you advice?

    PS: I've spent more than 2 days on this problem =(. As I have concluded User Interface issues are taking 90% of development time. This actually makes me sick of that Symbian programming.

  2. #2
    Regular Contributor
    Join Date
    May 2006
    Posts
    95

    Re: Menu and CBA in settings page

    Use DynInitMenuPaneL.Tat will definitely help!Even here on this topic it is discussed much.

    Regards,
    Palak

  3. #3
    Registered User
    Join Date
    Aug 2005
    Posts
    10

    Re: Menu and CBA in settings page

    Quote Originally Posted by palak_shah_23
    Use DynInitMenuPaneL.Tat will definitely help!Even here on this topic it is discussed much.

    Regards,
    Palak
    Oh, and how that would help me? Setting page's menu is created correctly from resource file. But commands that it holds couldn't be processed. Command Id's that are different from EAknSoftkeyOk and EAknSoftkeyBack are not processed and not passed for processing to HandleCommand of AppUI. And I need to process commands that were defined by me.

    Regards,
    Dmitriy

  4. #4
    Regular Contributor
    Join Date
    Aug 2004
    Posts
    295

    Re: Menu and CBA in settings page

    Create your own CAknSettingPage, and define your own ProcessCommandL?

  5. #5
    Registered User
    Join Date
    Aug 2005
    Posts
    10

    Re: Menu and CBA in settings page

    Quote Originally Posted by simo.salminen
    Create your own CAknSettingPage, and define your own ProcessCommandL?
    Unfortunately settings page is created from resources but not dynamically, and the only way to set it to the setting item is to derive own classes from CAknTextSettingItem, CAknTimeOrDateSettingItem etc. to get ability to set setting pages for them. All that plus deriving own class from CAknSettingPage plus getting lots of panics would take too much time. I think that it would be easier to use editors for my purpose. I also think that CAknSettingItemList was desined assuming no extensibility. Or if extensibility issues were assumed during design of that class it has been done badly.

    Anyway, Thank you wery much for your suggestion.

Similar Threads

  1. CBA when menu is open
    By vtatti in forum Symbian User Interface
    Replies: 5
    Last Post: 2011-09-07, 14:58
  2. How to use cba with LaunchPopupMenuL?
    By larrydb in forum Symbian User Interface
    Replies: 6
    Last Post: 2008-11-03, 09:24
  3. CBA, menu and key events
    By joker_pl in forum Symbian User Interface
    Replies: 1
    Last Post: 2005-09-19, 10:27
  4. bitmaps in CBA and menu
    By SymbianSandy in forum Symbian User Interface
    Replies: 6
    Last Post: 2005-08-30, 12:16
  5. about cba or menu
    By ld_road in forum Symbian C++
    Replies: 3
    Last Post: 2004-11-09, 16:27

Posting Permissions

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