Discussion Board
-
HELP! ScrollBars and ListBox
2004-03-10, 13:19
#1
Regular Contributor
I have:
// class myclass : public CCoeControl
iListBox = new (ELeave) CAknSingleGraphicStyleListBox;
iListBox->ConstructL(this,EAknListBoxMultiselectionList);
iListBox->SetContainerWindowL(*this);
//Append Items
iListBox->CreateScrollBarFrameL(ETrue);
iListBox->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOn,CEikScrollBarFrame::EAuto);
iListBox->SetRect(Rect());
iListBox->ActivateL();
But ScrollBar is invisible. Whats wrong?
Thanks.
-
Nokia Developer Expert
did you remember to set the SetMopParent() for your container class.
yucca
-
Regular Contributor
//class myView: public CAknView
...
iContainer = myclass::NewL(ClientRect(), this);
iContainer->SetMopParent(this);
AppUi()->AddToStackL(iContainer);
....
-
Nokia Developer Expert
Hi
check the UpdateScrollBar() function from the examples and add it after the ActivateL() function.
Also, dunno really does if make any difference, but usually I use
AppUi()->AddToStackL( *this,iContainer) when adding the container to the stack.
yucca
-
Regular Contributor
Thank you! Now problem is solved.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules