×

Discussion Board

Results 1 to 4 of 4

Hybrid View

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    47

    ScrollBars overlayed with listbox

    Hi, all.

    I'm using CAknSingle2GraphicPopupMenuStyleListBox for my listbox view. There is scrollbar in it, but it overlayed with listbox. Have you any suggestion how to fix it?

    Next code is responsible for listbox view creation:
    Code:
    iListBox = new (ELeave) CAknSingle2GraphicPopupMenuStyleListBox;
    
    	iListBox->ConstructL(this, EAknListBoxSelectionList);
    	iListBox->SetContainerWindowL(*this);
    	iListBox->SetListBoxObserver(this);
    
    	iListBox->ItemDrawer()->ColumnData()->SetSkinEnabledL(EFalse);
    
    	iListBox->CreateScrollBarFrameL(ETrue);
    	iListBox->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto);
    	iListBox->ItemDrawer()->ColumnData()->SetIconArray(CreateIconArrayL());
    
    	iItemArray = new (ELeave) CDesCArrayFlat(8);
    	iListBox->Model()->SetItemTextArray(iItemArray);
    	iListBox->Model()->SetOwnershipType(ELbmDoesNotOwnItemArray);

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: ScrollBars overlayed with listbox

    I think that would be normal behaviour, or is it somehow behaving differently than other apps using the listbox ?

  3. #3
    Registered User
    Join Date
    Nov 2011
    Posts
    47

    Re: ScrollBars overlayed with listbox

    Is there any way to avoid it?

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

    Re: ScrollBars overlayed with listbox

    CAkn-listboxes are pretty difficult to customize, so I would suggest sticking on the default look & feel.

Similar Threads

  1. about the scrollbars ...
    By InYourDreamz in forum Symbian
    Replies: 2
    Last Post: 2009-09-19, 18:10
  2. How to define LISTBOX with scrollbars in resources ?
    By kamildobk in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-05-19, 19:32
  3. Grid and Scrollbars
    By vmlf in forum Symbian User Interface
    Replies: 7
    Last Post: 2005-04-01, 03:48
  4. CAknView and Scrollbars in Listbox don't show up
    By Bernd42 in forum Symbian User Interface
    Replies: 0
    Last Post: 2004-06-10, 17:21
  5. HELP! ScrollBars and ListBox
    By malep1 in forum Symbian User Interface
    Replies: 4
    Last Post: 2004-03-12, 07:10

Posting Permissions

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