Menu bar creation problem. CAknDialog::ConstructL(R_MYSHAREVIEW_MENU)

Login to reply to this topic.
Fri, 2008-04-18 05:37
Joined: 2008-04-17
Forum posts: 4

Cool Hello Friends,

I want to use menu bar with my dialog . I have used CAknDialog::ConstructL(R_MYSHAREVIEW_MENU); Method to create the menu bar.
but menu bar is not viewed on click of options button.

following is the resource :

RESOURCE MENU_BAR r_myshareview_menubar
        {
        titles =
                {
                MENU_TITLE { menu_pane = r_myshareview_menu; }
                };
        }


// -----------------------------------------------------------------------------
//
//   r_myshareview_menu
//   Menu for "Options"
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_myshareview_menu
{
items =
        {
        // added the new Options menu command here
        MENU_ITEM
                        {
                        command = EmyShareView_View;
                        txt = qtn_EmyShareView_view;
                        },
        MENU_ITEM
                        {
                        command = EmyShareView_Edit;
                        txt = qtn_EmyShareView_Edit;
                        },
                        // Praveen added my Status menu item 8/04/08
       
        MENU_ITEM
                        {
                        command = EmyShareView_My_Share_Buddies;
                        txt = qtn_myShareView_My_Share_Buddies;
                        }
       
        };
}

// Following is the function where i call the CAknDialog::ConstructL(R_MYSHAREVIEW_MENU); method.

void CMyShareView::ConstructL(CClient *aConnection,TInt aResourceId)
{       
       
        CAknDialog::ConstructL(R_MYSHAREVIEW_MENU);
    PrepareLC(aResourceId);
        //CAknDialog::ConstructL(R_MYSHAREVIEW_MENU);
        iMyViewListbox = (CAknDoubleGraphicStyleListBox *) this->Control(EMySharesViewListControl);
        SetIconArrayL();
        iMyViewListbox->SetListBoxObserver(this);
    iCmFile=NULL;
    iright=NULL;
        iConnection = aConnection;
        iConnection->SetUI(this);
        ixmlParser = CXMLParserEngine::NewL(*this);
        ixmlGenerator = CXmlGenerator::NewL();

       
}

Please help . waiting for reply.
Regards,
Praveen.


Fri, 2008-04-18 07:13
Joined: 2007-08-29
Forum posts: 128
Re: Menu bar creation problem. CAknDialog::ConstructL(R_MYSHAREV

Hi praveenp,

you need to call R_MYSHAREVIEW_MENU in HandleCommandL() function .


Thanks & Regards
Ram

Symbian OS 9.1,S60 3rd edition MR,and CodeWarrior 3.1

  • Login to reply to this topic.