Using split screen keyboard in Symbian Anna and beyond
This article explains how to use split screen keyboard in Symbian Anna.
Article Metadata
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)

