You Are Here:

Community: Wiki

This page was last modified on 14 May 2008, at 04:19.

How to find out the correct location for softkey labels

From Forum Nokia Wiki

The Command Button Array (CBA) is usually located at the bottom of the screen in S60 devices. If a device supports switching between portrait and landscape orientations, the location of the CBA is not fixed (in relation to screen). While the control pane in the S60 UI is always positioned correctly, scalable applications that draw their own custom labels for softkeys should be aware of the correct location for the CBA.

In some phones (e.g., the Nokia E70), the softkeys will be on the right side of the screen when in landscape mode.

If an application needs to adjust its UI (softkeys positions) based on orientation, the CBA location can be retrieved with

AknLayoutUtils::CbaLocation();

Return value is one of the following:

enum TAknCbaLocation
 
{
 
EAknCbaLocationBottom, // landscape and portrait
 
EAknCbaLocationRight, // only landscape
 
EAknCbaLocationLeft // only landscape
 
};

More information: TSS000582

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