×
Namespaces

Variants
Actions

How to add ScrollBar in ListBox

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: vasant21 (07 Aug 2007)
Last edited: hamishwillee (26 Jul 2012)
// 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:

This page was last modified on 26 July 2012, at 06:14.
48 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×