diff -r 48780e181b38 -r 578be2adaf3e Symbian3/PDK/Source/GUID-DB2E0959-C24E-4E6E-BC6D-064B91BDE662.dita --- a/Symbian3/PDK/Source/GUID-DB2E0959-C24E-4E6E-BC6D-064B91BDE662.dita Tue Jul 20 12:00:49 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-DB2E0959-C24E-4E6E-BC6D-064B91BDE662.dita Fri Aug 13 16:47:46 2010 +0100 @@ -1,42 +1,42 @@ - - - - - -Checking -for touch support at runtimeThe Symbian platform now includes AknLayoutUtils::PenEnabled() to -check for touch support at runtime to allow for reduced run-time memory consumption -if the device does not support touch. -

Typical cases where AknLayoutUtils::PenEnabled() might -be useful include:

- -

AknLayoutUtils::PenEnabled() is supported from S60 -3rd Edition, FP1, onwards.

-void CMyAppContainer::ConstructL( const TRect& aRect ) - { - CreateWindowL(); - SetRect( aRect ); - - // If the device supports touch, construct long tap detector - if ( AknLayoutUtils::PenEnabled() ) - { - iLongTapDetector = CAknLongTapDetector::NewL( this ); - } - ActivateL(); - } -

You cannot use AknLayoutUtils::PenEnabled() in .rss resource -files.

+ + + + + +Checking +for touch support at runtimeThe Symbian platform now includes AknLayoutUtils::PenEnabled() to +check for touch support at runtime to allow for reduced run-time memory consumption +if the device does not support touch. +

Typical cases where AknLayoutUtils::PenEnabled() might +be useful include:

+
    +
  • In the component’s constructor to skip the creation of touch-only component +controls.

  • +
  • In the component’s HandleResourceChange, create +touch-only component controls if the layout is switched from a non-touchable +to a touchable one. Touch-only component controls should not be deleted.

  • +
  • In the component’s drawing code.

  • +
+

AknLayoutUtils::PenEnabled() is supported from S60 +3rd Edition, FP1, onwards.

+void CMyAppContainer::ConstructL( const TRect& aRect ) + { + CreateWindowL(); + SetRect( aRect ); + + // If the device supports touch, construct long tap detector + if ( AknLayoutUtils::PenEnabled() ) + { + iLongTapDetector = CAknLongTapDetector::NewL( this ); + } + ActivateL(); + } +

You cannot use AknLayoutUtils::PenEnabled() in .rss resource +files.

\ No newline at end of file