×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Dec 2008
    Location
    Prague or Carlsbad in Czech republic
    Posts
    54

    Problem with change screen orientation

    Hello,

    I have nokia E75 phone and when I change screen orientation,
    I have problem, because on the right side show white rectangle,
    where text is not visible -



    I use CAknForm as container and this code for screen orientation changing...

    Code:
    void CSmsSend::AdjustControlRect()
    {
    	TSize size;	
    	AknLayoutUtils::LayoutMetricsSize(AknLayoutUtils::EMainPane, size);
    	iContainer->SetRect(TRect(TPoint(0,0), size));	
    }
    
    void CSmsSend::HandleResourceChange(TInt aType)
    {	
    	if(aType == KEikDynamicLayoutVariantSwitch)
    	{
    		AdjustControlRect();
    		iContainer->Refresh();
    	}
    	CAknDialog::HandleResourceChange(aType);
    }
    Thanks for help Petr

  2. #2
    Regular Contributor
    Join Date
    Dec 2008
    Location
    Prague or Carlsbad in Czech republic
    Posts
    54

    Re: Problem with change screen orientation

    Problem is in HTMLCONTROL and is not in this code.
    This code is valid.

    See
    http://code.google.com/p/htmlcontrol...n/wiki/Form_ss

  3. #3
    Super Contributor
    Join Date
    Sep 2007
    Posts
    1,005

    Re: Problem with change screen orientation

    Quote Originally Posted by svopex View Post
    Problem is in HTMLCONTROL and is not in this code.
    This code is valid.

    See
    http://code.google.com/p/htmlcontrol...n/wiki/Form_ss
    from what u had shown, the sizechange() function is not working,
    u should Retrive the new Rect and redraw the whole new area.

Similar Threads

  1. problem regarding to screen
    By sis1987 in forum Mobile Java General
    Replies: 2
    Last Post: 2009-02-27, 06:56
  2. Replies: 3
    Last Post: 2008-10-10, 08:15
  3. Please help, about screen orientation change
    By zhangyuebing in forum Symbian User Interface
    Replies: 5
    Last Post: 2008-08-28, 08:26
  4. Replies: 1
    Last Post: 2008-07-25, 14:41
  5. problem facing with capture key on standby screen
    By mayudada in forum Symbian C++
    Replies: 2
    Last Post: 2008-01-15, 11:53

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •