Discussion Board

Results 1 to 3 of 3

Hybrid View

  1. #1
    Regular Contributor svopex's Avatar
    Join Date
    Dec 2008
    Location
    Prague or Carlsbad in Czech republic
    Posts
    54
    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 svopex's Avatar
    Join Date
    Dec 2008
    Location
    Prague or Carlsbad in Czech republic
    Posts
    54
    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 oracle3's Avatar
    Join Date
    Sep 2007
    Posts
    1,005
    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
  •  
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