×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    62

    Problem with CAknEnumeratedTextPopupSettingItem

    Hi,

    I have created a selection List. I display the default value and when user presses change key, display the whole list. Now, when I move between different resolutions mode the scrollbar gets displayed in the middle of screen. I have been testing this on emulator.I used MR edition.Strangely, i can see this happen only when, I start my application in 320*240 resoultion in the emulator.
    I have tried with handleresourcechange, setsizeandposition. I am including a part of my code snippet:

    void CSettingItemListDlg::SetSizeAndPosition ( const TSize& aSize )
    {
    CAknDialog::SetSizeAndPosition( aSize );
    TRect aCurrLayoutRect;
    AknLayoutUtils::LayoutMetricsRect (AknLayoutUtils::EMainPane,
    aCurrLayoutRect);
    iSettingsList->SetExtent( TPoint( 0,0 ),aCurrLayoutRect.Size());
    }

    void CSettingItemListDlg::HandleResourceChange( TInt aType)
    {
    CAknDialog::HandleResourceChange( aType );

    //do re-layout
    TRect aCurrLayoutRect;

    AknLayoutUtils::LayoutMetricsRect (AknLayoutUtils::EMainPane,
    aCurrLayoutRect);
    iSettingsList->SetSize( aCurrLayoutRect.Size());

    }

  2. #2
    Super Contributor
    Join Date
    Jan 2008
    Location
    Bangalore, India
    Posts
    777

    Re: Problem with CAknEnumeratedTextPopupSettingItem

    try this,
    CAknDialog::HandleResourceChange( aType );
    if(iSettingsList)
    iSettingsList->SetRect( ClientRect() );
    Regards
    $-Nitesh-$

  3. #3
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    62

    Re: Problem with CAknEnumeratedTextPopupSettingItem

    Hi Nitesth,

    Thanks for u reply. Tried that but same result
    Last edited by tampstaffs; 2008-06-05 at 09:54.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Problem with CAknEnumeratedTextPopupSettingItem

    You can try adding a DrawNow after SetRect.

  5. #5
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    62

    Re: Problem with CAknEnumeratedTextPopupSettingItem

    Hi Wizard_hu tried that but no result.

Similar Threads

  1. Problem with CAknDoubleStyleListBox with a CAknSearchField
    By jjig in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-09-17, 00:58
  2. CAknEnumeratedTextPopupSettingItem problem in 3rd
    By mobile_don in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-01-18, 06:34
  3. netcards - Problem with opening adapter
    By kernj in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-01-10, 08:56
  4. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36
  5. problem with CAknEnumeratedTextPopupSettingItem
    By jjesus in forum Symbian User Interface
    Replies: 0
    Last Post: 2004-10-16, 07:02

Posting Permissions

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