×
Namespaces

Variants
Actions
Revision as of 08:30, 24 April 2007 by copyeditor (Talk | contribs)

Softkey labels

From Nokia Developer Wiki
Jump to: navigation, search

When designing S60 applications, it's important to follow the S60 UI style. Users will find it easier to learn how to use your application, if the look and feel is similar to system applications. What comes to softkeys, in S60 devices the softkey labels are

  • left softkey: positive actions like OK, Select, Options
  • right softkey: negative actions like Back, Cancel, Quit, Exit

"Done", even though it can be considered as a positive action, can be placed to right softkey in forms, which have Options menu available (left softkey is "Options").

With Nokia E90 one should notice that on the PDA side softkeys are reversed compared to other S60 devices. The same happens on Nokia N93(i) when using landscape mode, too. You can use the following code to find out which softkey is the upper one when the CBA is on the left or right side of the screen:

TBool IsOptionsButtonOnTop()
{
CEikButtonGroupContainer* cba = CEikonEnv::Static()->AppUiFactory()->Cba();
if( !cba )
{
return EFalse;
}
 
CCoeControl* options = cba->ControlOrNull( EAknSoftkeyOptions );
CCoeControl* exit = cba->ControlOrNull( EAknSoftkeyExit );
 
if( options && exit )
{
if( options->Position().iY < exit->Position().iY )
{
return ETrue;
}
}
 
return EFalse;
}

It should be easy for the user to close the application. The Options menu should always have "Exit" as the last item in the menu. "Exit" can be placed to the right softkey when there is no need for other labels and it's expected that user might want to close the application. In S60 3rd Edition devices, pressing the End key (Red key) closes the application automatically.

181 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×