Discussion Board
-
Implementing Vertical ScrollBar for the Custom Control
2005-03-07, 09:51
#1
Registered User
Hi
Can anyone help me while putting down Vertical Scroll Bar for a Custom Control which is derived from the CCoeControl Class.
I do have implemented the code for the Scroll Bar but then too its not showing up
Implementation i have done for the ScrollBar
void
CIconList::ConstructL(const TRect& aRect, const CCoeControl* aParent)
{
// ScrollBar Implementation
MEikScrollBarObserver* aScrollBarObserver;
iSbFrame = new (ELeave) CEikScrollBarFrame(this, aScrollBarObserver, ETrue); //CEikScrollBarFrame();
iSbFrame->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff, CEikScrollBarFrame::EOn);
iSbFrame->SetTypeOfVScrollBar(CEikScrollBarFrame::EArrowHead);
iVModel.iScrollSpan = 10;
iVModel.iThumbSpan = 1;
iVModel.iThumbPosition = 3;
TEikScrollBarFrameLayout layout;
TRect rect = aRect;
iSbFrame->TileL(&iHModel, &iVModel, rect, rect, layout);
iSbFrame->SetVFocusPosToThumbPos(iVModel.iThumbPosition);
SetRect( aRect );
ActivateL();
iSbFrame->DrawScrollBarsNow();
}
-
Re: Implementing Vertical ScrollBar for the Custom Control
2006-03-02, 08:31
#2
Regular Contributor
did you find a solution? If there's one , let me know pls.
i am facing the same problem .
thanks
-
Re: Implementing Vertical ScrollBar for the Custom Control
2006-03-08, 07:18
#3
Registered User
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