Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User Dgut's Avatar
    Join Date
    Jul 2008
    Posts
    16
    I use CAknSettingItemList in CCoeControl.
    Code:
    void CAppView::ConstructL( const TRect & aRect )
    {
    	CreateWindowL();
    	SetRect( aRect );
    
    	iSettingList = new ( ELeave )CSettingList();
    	iSettingList->SetContainerWindowL( *this );
    	iSettingList->ConstructFromResourceL( R_EAT_SETTING_ITEM_LIST );
    	iSettingList->SetRect( aRect );
        iSettingList->ActivateL();
    
    	ActivateL();
    }
    
    void CAppView::SizeChanged( void )
    {
    	if( iSettingList )
    	{
    		iSettingList->SetRect( Rect() );
    		iSettingList->DrawNow();
    	}
    }
    Then I change screen size (from portrait to landscape) it looks ugly:

    How to avoid it?

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,672
    does the SizeChanged actually get called when the layout changes ?

  3. #3
    Registered User Dgut's Avatar
    Join Date
    Jul 2008
    Posts
    16
    Yes, SizeChanged called. Then i use CAknView it works fine, but i need to use CCoeControl.

  4. #4
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,672
    are you absolutely sure that is called ? By looking into image, for me it looks like it isn't.

    Basically you need to check monitor the layout change, and set the new rect in your code, and then the SizeChanged will be called..

  5. #5
    Registered User Dgut's Avatar
    Join Date
    Jul 2008
    Posts
    16
    Other listboxes works good, only setting list shows this picture.

Similar Threads

  1. RecordStore bug on Series 60
    By ncerezo2 in forum Mobile Java General
    Replies: 21
    Last Post: 2009-11-26, 10:12
  2. Serious BUG in Nokia phones!!!
    By bartekn in forum Mobile Java Media (Graphics & Sounds)
    Replies: 10
    Last Post: 2004-03-28, 22:09
  3. A bug: setColor with offscreen graphics - PLEASE, REPLY THIS TIME
    By palmcrust in forum Mobile Java General
    Replies: 11
    Last Post: 2003-12-04, 12:43
  4. Firmware bug or code bug displaying list on 3650
    By blackjack75 in forum Mobile Java General
    Replies: 2
    Last Post: 2003-09-24, 19:52
  5. ** Important ** Event bug in phone and emulator.
    By fnagaton in forum Symbian C++
    Replies: 8
    Last Post: 2003-07-11, 12:56

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