Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User mail2karthi07's Avatar
    Join Date
    Feb 2010
    Location
    India
    Posts
    281
    How to set or disable Screen orientation for particular view in a project?

  2. #2
    Registered User tpatja's Avatar
    Join Date
    Jan 2004
    Posts
    23
    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

  3. #3
    Registered User mail2karthi07's Avatar
    Join Date
    Feb 2010
    Location
    India
    Posts
    281
    Thank you very much

  4. #4
    Registered User mail2karthi07's Avatar
    Join Date
    Feb 2010
    Location
    India
    Posts
    281
    Quote Originally Posted by tpatja View Post
    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);
    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

Similar Threads

  1. How to disable auto orientation in Flash Lite 4 of N8?
    By yeggo in forum [Archived] Flash Lite on Nokia Devices
    Replies: 7
    Last Post: 2010-11-28, 22:55
  2. How to disable the screen orientation feature to the midlet canvas?
    By vemulakiran in forum Mobile Java General
    Replies: 2
    Last Post: 2010-05-06, 18:26
  3. Disable screen orientation change
    By shankx in forum [Archived] Flash Lite on Nokia Devices
    Replies: 5
    Last Post: 2009-05-05, 23:45
  4. How to pass informaiton from home screen view to full screen view?
    By steve.yau in forum Symbian Web Runtime
    Replies: 0
    Last Post: 2009-04-27, 14:03
  5. Set Display Orientation?
    By steppi in forum Mobile Java General
    Replies: 7
    Last Post: 2007-07-27, 18:50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
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