×

Discussion Board

Results 1 to 2 of 2

Thread: Custom cba

  1. #1
    Regular Contributor
    Join Date
    Dec 2003
    Posts
    470

    Smile Custom cba

    Hi,

    I have written a custom cba. The problem is that when I use the custom cba, no other menu options appear. Only
    the custom cba appears. The same is the case when I use cba = R_AVKON_SOFTKEYS_BACK. It works if I use
    the cba = R_AVKON_SOFTKEYS_SELECTION_LIST;.The following is the code I use.

    RESOURCE AVKON_VIEW r_app_refresh_view
    {
    cba = r_app_cba;
    menubar = r_app_refresh_menubar;
    }

    RESOURCE MENU_BAR r_app_refresh_menubar
    {
    titles =
    {
    MENU_TITLE { menu_pane = r_app_refresh_menu; txt = "View"; }
    };
    }

    RESOURCE MENU_PANE r_app_refresh_menu
    {
    items =
    {
    MENU_ITEM
    {
    command = ECategories;
    txt = "Categories";
    },
    MENU_ITEM
    {
    command = EMMenu;
    txt = "Main Menu";
    }
    };
    }

    RESOURCE CBA r_app_cba
    {
    buttons =
    {
    CBA_BUTTON { id = EAknSoftkeyCancel; txt = ""; },
    CBA_BUTTON
    {
    id = ECmdAccept;
    txt = "Accept";
    }
    };
    }

    What is wrong with the above code ?

    Regards,
    Jaak

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,956

    Re: Custom cba

    why are you using the text in the following:

    MENU_TITLE { menu_pane = r_app_refresh_menu; txt = "View"; }

Similar Threads

  1. Custom background & text color for CBA and StatusPane
    By olhed in forum Symbian User Interface
    Replies: 7
    Last Post: 2009-10-16, 11:57
  2. Custom CBA buttons
    By pornima in forum Symbian C++
    Replies: 2
    Last Post: 2009-05-04, 13:03
  3. How to use custom CBA with form dialog
    By juannoguera in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-02-11, 23:18
  4. CAknGlobalNote + custom CBA -> CONE 14 panic
    By pwegrzyn in forum Symbian C++
    Replies: 4
    Last Post: 2009-01-29, 10:32
  5. Global note with custom cba
    By brijesh in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-10-30, 13:52

Posting Permissions

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