Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

How to hide ScrollBar in ListBox

From Wiki
Jump to: navigation, search

This snippet shows how to hide/unhide scrollbars for a CEikListBox using a handle to CEikScrollBarFrame.

Article Metadata
Tested with
Devices(s): Nokia E90
CompatibilityPlatform Security
Signing Required: Self-Signed
Capabilities: None
Keywords: CEikListBox, CEikScrollBarFrame, SetScrollBarVisibilityL().
Created: vasant21 (14 Oct 2008)
Last edited: hamishwillee (30 May 2013)


Here we assume that we already have a working code for listbox.

MMP file

The following capabilities and libraries are required:

LIBRARY eikcoctl.lib


#include <eiksbfrm.h> 
//sets both horizontal and the vertical scroll bars to invisible.
iListBox->ScrollBarFrame()->SetScrollBarVisibilityL( CEikScrollBarFrame::EOff, CEikScrollBarFrame::EOff);


Both horizontal and vertical Scroll Bar Frames are invisible.

This page was last modified on 30 May 2013, at 04:38.
45 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.