×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    16

    CAknSettingItemList SetRect bug

    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
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: CAknSettingItemList SetRect bug

    does the SizeChanged actually get called when the layout changes ?

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    16

    Re: CAknSettingItemList SetRect bug

    Yes, SizeChanged called. Then i use CAknView it works fine, but i need to use CCoeControl.

  4. #4
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: CAknSettingItemList SetRect bug

    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
    Join Date
    Jul 2008
    Posts
    16

    Re: CAknSettingItemList SetRect bug

    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. 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
  •