Scrollbars and SCrollbar Frames
| Fri, 2003-10-31 14:38 | |
|
Hey can anyone help me on how to use SCrollbars? I have a Container Control that has many controls on it.. so, it would not fit in the entire screen of 3650.. so i need to use SCrollbar Frames? help on how to use it properly.. tnx in advance? "its all right, the gun isn't loaded." |
|






Forum posts: 5
Forum posts: 104
Now i;m building a control/container from scratch.. meaning i have to manually create the scrollbars and make them work properly...
"its all right, the gun isn't loaded."
Forum posts: 30
Forum posts: 30
TEikScrollBarModel iVModel;
TEikScrollBarModel iHModel;
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);
ActivateL();
iSbFrame->DrawScrollBarsNow();
iSbFrame->MoveVertThumbTo(pos);
One thing bothers me, do I have to move the controls by myself!? that's seems stupid