×
Namespaces

Variants
Actions

Using split screen keyboard in Symbian Anna and beyond

From Nokia Developer Wiki
Jump to: navigation, search

This article explains how to use split screen keyboard in Symbian Anna.

Article Metadata
Compatibility
Platform(s):
Symbian Anna
Article
Created: digitalsurgeon (01 Sep 2011)
Last edited: hamishwillee (23 Sep 2011)

Introduction

Starting from Anna, symbian supports split screen virtual keyboard. Lets see how to use it.

For the CEikEdwin based controls on which you want to enable the split screen keyboard, you need to set this flag: EAknEditorFlagEnablePartialScreen. Either through the resource files, or SetAknEditorFlags function.

SetAknEditorFlags( AknEditorFlags() | EAknEditorFlagEnablePartialScreen );

It is defined like so in eikon.hrh file:

#define EAknEditorFlagEnablePartialScreen             0x200000
#define EAknEditorFlagLaunchPenInputAutomatic 0x400000

EAknEditorFlagLaunchPenInputAutomatic makes the control open the keyboard automatically without user tapping on it. Handy.

Now how do you detect the keyboard is opened or closed ?

Simple.

In your AppUi or in your CCoeControl based class implement HandleResourceChange function.


void MyContainer::HandleResourceChange(TInt aType)
{
// handle there events:
const TInt KAknSplitInputUiOpen = 0x2001E2C2; // split screen vkb opened, layout controls
const TInt KAknSplitInputUiClose = 0x2001E2C3; // split screen vkb closed, layout controls
}

digitalsurgeon 14:33, 1 September 2011 (EEST)

This page was last modified on 23 September 2011, at 04:52.
56 page views in the last 30 days.