Namespaces
Variants
Actions

How to add ScrollBar in ListBox

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.
79 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved