How to set or disable Screen orientation for particular view in a project?
How to set or disable Screen orientation for particular view in a project?
Haven't tried but according to documentation, this should work:
1. Add this code to the ConstructL of your view (CCoeControl derived class):
static_cast<CEikAppUi*>(CCoeEnv::Static()->AppUi())->SetOrientation(EAppUiOrientationLandscape); // forces landscape orientation. use EAppUiOrientationPortrait to force portrait orientation
2. Add this code to the desctructor of your view:
static_cast<CEikAppUi*>(CCoeEnv::Static()->AppUi())->SetOrientation(EAppUiOrientationAutomatic);
Last edited by tpatja; 2010-12-15 at 12:57. Reason: corrected appui pointer type
Problem in VKB(Virtual keyboard)
My Code follows
In APPUI
BaseConstructL(EAknEnableSkin | EAppOrientationPortrait);
I Used Portrait for all views . In Particularview I set to EAppUiOrientationAutomatic. In that view i used rich text editor ,in that editor Virtual keyboard is shown in portrait mode only
...i need to show as a querty VKB