You Are Here:

Community: Developer Discussion Boards

#1 Old Avoid Option Menu - 2003-07-15, 22:32

Join Date: Jul 2003
Posts: 3
ykaddoura
Offline
Registered User
I would really appreciate any help.
I want the left softkey to be labeled OK (instead of OPTIONS) and the right soft key to be labeled EXIT.

thanks alot
Reply With Quote

#2 Old 2003-07-16, 06:24

Join Date: Mar 2003
Posts: 162
Location: Malaysia-Johor-Pontian Kecil
akokchai
Offline
Regular Contributor
Hi,

R u developing something on Series60 platform ? Then I think u can't get rid of the options menu bcof u add back and ok command into your displayable. And the system will insert exit command automatically. That's mean u can c the options menu. If u r using 2.0 now, u may can try form and add customitem. U can add command to all customitem instead of adding them to the form. 4 ur case, I think u can add ok to each item and add back to the form. So u will c the back commant on the form only. I hope I don't make the mis-guess.. :-)

Best Regards,
chai.
Reply With Quote

#3 Old Thanks alot that was so helpful - 2003-07-16, 19:45

Join Date: Jul 2003
Posts: 3
ykaddoura
Offline
Registered User
Yep, am developing on Series 60 platform. Your suggestion works as one way of solving the problem (which is great). But when i looked at the NOKIA SERIES 60 UI STYLE GUIDE, they mention about "CONTROL PANE which occupies the bottom part of the screen and displays the labels associated with the two softkeys".(there should be a way of configuring this control pane) if you know any thing about the customizing the control pane please let me know.
Also, when they describe the LEFT SOFTKEY at the end of the explanation they say
"Other labels and functions:
-SELECT. Used in menu lists and grids where further options ar not available. Selects the focused item; same as Select key function.
- OK, YES and other positive replies; used in confirmation queries.
- In idle, a shortcut to specific application
Configurable by the user, labeled according to the application"

Now my question do they mean Configurable to the extent of choosing between the above labels (select,ok, yes). Or by configurable they mean any textual label that the developer desires.

Thanks in advance for taking the time to read this.
Reply With Quote

#4 Old 2003-07-17, 05:55

Join Date: Mar 2003
Posts: 143
Location: Kluang
yowchuan
Offline
Sony Ericsson Expert
In series 40, what we did was using the function:

command.BACK

command.EXIT

and the "menu" will be automatically aligned to the right. The function is configurable, meaning, you might actually display it as "SELECT" on the screen, while you can actually configure it to "EXIT" in your codes.

Hope that helps.
Reply With Quote

#5 Old Re: Avoid Option Menu - 2005-12-20, 02:54

Join Date: Dec 2005
Posts: 37
SevenOfEleven
Offline
Registered User
I also would like to have on the left "OK" and on the right either "Back" or "Exit" depending on which menu. It seems a bit cumbersome for users to hit options and then ok. Right now if you want to app to do a system call, have to go to options and then hit ok. Is it possible?
Reply With Quote

#6 Old Re: Avoid Option Menu - 2005-12-20, 20:23

Join Date: Nov 2003
Posts: 44
mopfattn
Offline
Registered User
The only way I know to get rid of the Options menu on Series 60 is by using Nokia's FullCanvas class. You can't add any commands to a FullCanvas, but you get keyPressed events when the user pressed a softkey. However, it's no solution if you want to use the higher level classes, such as Form or List.
Reply With Quote

#7 Old Re: Avoid Option Menu - 2005-12-21, 18:39

Join Date: Mar 2005
Posts: 499
Location: Paris
njzk2
Offline
Regular Contributor
actually, fullcanvas is deprecated since midp2, so unless you are developping for old phones like 3650, you should use Canvas with setFullScreenMode(true) instead
Reply With Quote

#8 Old Re: Avoid Option Menu - 2006-09-14, 16:23

Join Date: Oct 2004
Posts: 107
bharatuppal
Offline
Regular Contributor
Hi man here is the code which i used to get rid of option button


// in your Appui class


void CMenuSwapAppUi::ChangeCBA(TInt aResourceID)
{
CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current();
cba->SetCommandSetL(aResourceID);
switch (aResourceID)
{
case R_MENUSWAP_MENUBAR:
iCBAState = ECbaDefault;
break;
case R_MENUSWAP_CBA_PLAY_BACK:
iCBAState = ECbaPlayBack;
break;
case R_MENUSWAP_CBA_PAUSE_STOP:
iCBAState = ECbaPauseStop;
break;

}
cba->DrawNow();
}


// Your HandleCommandL() function

void CMenuSwapAppUi::HandleCommandL( TInt aCommand )
{
switch( aCommand )
{
case EEikCmdExit:
case EAknSoftkeyExit:
Exit();
break;

case ECbaDefault:
{
ChangeCBA(R_SOFTKEYS_TASKS);
}break;
case ECbaPlayBack:
{
ChangeCBA(R_MENUSWAP_CBA_PLAY_BACK);
}break;
case ECbaPauseStop:
{
ChangeCBA(R_MENUSWAP_CBA_PAUSE_STOP);
}break;

default:
Panic( EMenuSwapUi );
break;
}
}


Finally your Resource File Code


RESOURCE EIK_APP_INFO
{
// menubar = r_menuswap_menubar;
// cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;

cba = r_softkeys_tasks;
menubar = r_menuswap_menubar;
}


RESOURCE CBA r_softkeys_tasks
{
buttons =
{

AVKON_CBA_BUTTON { id = EAknSoftkeyExit; txt = qtn_softkey_details; },
AVKON_CBA_BUTTON { id = EAknSoftkeyOptions; txt = qtn_softkey_options; }
};
}


RESOURCE CBA r_menuswap_cba_play_back
{
buttons =
{
CBA_BUTTON { id = ECbaDefault; txt = qtn_softkey_back; },
CBA_BUTTON { id = ECbaPauseStop; txt = qtn_softkey_details; }

};

}
RESOURCE CBA r_menuswap_cba_pause_stop
{
buttons =
{
CBA_BUTTON { id = ECbaPlayBack; txt = qtn_softkey_stop; },
CBA_BUTTON { id = EAknSoftkeyOptions; txt = qtn_softkey_options; }

};
}

With Regards
Bharat

Do Reply if you have any further question

(75% Analysis 15 % Debugging 10 % Coding ) = Good Developer
Reply With Quote

#9 Old Re: Avoid Option Menu - 2006-09-19, 18:20

Join Date: Dec 2005
Posts: 37
SevenOfEleven
Offline
Registered User
//not going to see that in java code
CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current();
cba->SetCommandSetL(aResourceID);

Thanks bharatuppal for the suggestion though.
Reply With Quote

#10 Old Re: Avoid Option Menu - 2006-09-20, 07:19

Join Date: Oct 2004
Posts: 107
bharatuppal
Offline
Regular Contributor
hi sevenofeleven

i guess even i hve done the same thing but have given you the entire code

including resource file structure

With Regards
Bharat
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia