Namespaces
Variants
Actions
Revision as of 08:05, 9 May 2012 by hamishwillee (Talk | contribs)

How to check whether Pen Support is Enabled

Jump to: navigation, search

This snippet shows how to check whether Pen Support is enabled or not for the current Layout. This can be especially used at runtime to check/support both touch and non-touch codes maintained within the single source code specially for the controls.

Article Metadata

Compatibility
Platform(s): S60 3rd Edition FP1, S60 5th Edition

Platform Security
Signing Required: Self Signed
Capabilities: None

Article
Keywords: AknLayoutUtils::PenEnabled().
Created: vasant21 (22 Oct 2008)
Last edited: hamishwillee (09 May 2012)

MMP file

The following capabilities and libraries are required:

CAPABILITY  None
 
LIBRARY avkon.lib
LIBRARY eikcore.lib


Source:

#include <AknUtils.h> 
 
TBool isPenEnabled = AknLayoutUtils::PenEnabled();


Postconditions

isPenEnabled is ETrue if Pen Support is enabled for the current Layout, EFalse otherwise.

157 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved