Hi all,
Uptil now I was using menubar to handle any event but if I want to use just ok cancel button instead.
on ok I want to move on next page.
How should I proceed?
If anybuddy knows plz help...
Sohni.
Hi all,
Uptil now I was using menubar to handle any event but if I want to use just ok cancel button instead.
on ok I want to move on next page.
How should I proceed?
If anybuddy knows plz help...
Sohni.
Last edited by sohnisheth; 2006-07-25 at 06:33.
You may use R_AVKON_SOFTKEYS_OK_CANCEL as your CBA. Check avkon.rsg for more details.
Hi,
Use CEikCommandButtonContainer class. like this...
or u can create ur own resource, likeCode:CEikButtonGroupContainer * iCba = CEikButtonGroupContainer::Current(); if( iCba) { iCba->SetCommandSetL( R_AVKON_SOFTKEYS_OK_CANCEL ); iCba->DrawNow(); }
and use it in CEikCommandButtonContainer class. Handle the commands in HandleCommandL() in AppUi Class.Code:RESOURCE CBA r_test_cmd { buttons = { CBA_BUTTON { id=ETestCmdAppCmd1; txt = "Cmd1"; }, CBA_BUTTON { id=ETestCmdAppCmd2; txt = "Cmd2"; } } ; }
regards,
eswar
Thanks eswar,
I did with first option u suggested,but that is giving undefined error for resource R_AVKON_SOFTKEYS_OK_CANCEL in
iCba->SetCommandSetL( R_AVKON_SOFTKEYS_OK_CANCEL );
I have added eikbtgpc.h and .rsg as well.
Sohni.
Last edited by sohnisheth; 2006-07-25 at 08:16.
hi,
plz check ur .rss file whether u have included this file
#include <avkon.rsg>
and also include ur myapp.rsg file in the cpp file in which ur getting this error
and then rebuild will resolve ur issue.
Regards,
Mateen Maldar
"Whatever the mind can conceive and believe, the mind can achieve"
Thanks mateen for your concern,
I had put all those things.Now I got the thing,I was mistaken in keeping resourceID.
That should be a command needed to be focused from .hrh.
Thanks all.
Sohni.
For some odd reason my application leaves when i do..
CEikButtonGroupContainer *cba = AppUi()->Cba();
if ( cba )
{
cba->MakeVisible( ETrue );
cba->DrawDeferred();
}*/
For some odd reason my application leaves at the line SetCommandSetL()
CEikButtonGroupContainer *cba = AppUi()->Cba();
if ( cba )
{
cba->SetCommandSetL(R_SOFTKEYS_MY_CBA);
cba->DrawDeferred();
}
my rss file looks like this :-
RESOURCE CBA R_SOFTKEYS_MY_CBA
{
buttons =
{
CBA_BUTTON
{
id=ECmdNext;
txt = "Next";
}
} ;
}
And this is how the Resource for the view looks like :-
RESOURCE MENU_BAR r_question_menubar
{
titles =
{
MENU_TITLE {menu_pane = r_question_menu;}
};
}
// ---------------------------------------------------------
//
// r_question_menubar
// Menu for "Question View"
//
// ---------------------------------------------------------
//
RESOURCE MENU_PANE r_question_menu
{
items =
{
MENU_ITEM
{
command = ECmdAnswer1;
txt = "Show Options";
},
MENU_ITEM
{
command = ECmdAnswer2;
txt = "Show Settings";
},
MENU_ITEM
{
command = ECmdAnswer;
txt = "Answer";
}
};
}
RESOURCE AVKON_VIEW r_question_view
{
cba=R_AVKON_SOFTKEYS_OPTIONS_EXIT;
menubar=r_question_menubar;
}
I am totally lost..please can someone clarify the same..!
Basically instead of the Exit on the Right softkey i want "Next"
Cheers
mayank
I hope the issue is with your CBA resource:
Use this resource:
You may refer this thread from NewLC: How to change text of CBA buttons.Code:RESOURCE CBA r_softkeys_options_next { buttons = { CBA_BUTTON { id=EAknSoftkeyOptions; txt = "Options"; }, CBA_BUTTON { id=EYourAppCmdNext; txt = "Next"; } }; }