How to add ScrollBar in ListBox
Article Metadata
// Creates a scrollbar frame
iItemList->CreateScrollBarFrameL(ETrue);
//set scroll bar visibility
iItemList->ScrollBarFrame()->
SetScrollBarVisibilityL(CEikScrollBarFrame::EOn, CEikScrollBarFrame::EOn);
//Force any scroll bars and the corner window if it is visible to be redrawn
iItemList->ScrollBarFrame()->DrawScrollBarsNow();
The first parameter controls the horizontal (<->), the second the vertical(like an I) scrollbar. Setting one of the parameters to EOff disables the scrollbar, setting it to EAuto displays it if needed.
Related Links:


(no comments yet)