Namespaces
Variants
Actions

How to hide ScrollBar in ListBox

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

Compatibility
Platform(s): S60 3rd Edition, S60 5th Edition

Platform Security
Signing Required: Self-Signed
Capabilities: None

Article
Keywords: CEikListBox, CEikScrollBarFrame, SetScrollBarVisibilityL().
Created: vasant21 (14 Oct 2008)
Last edited: hamishwillee (12 Oct 2012)

Preconditions

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


MMP file

The following capabilities and libraries are required:

CAPABILITY  None
LIBRARY eikcoctl.lib

Source:

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


Postconditions

Both horizontal and vertical Scroll Bar Frames are invisible.

This page was last modified on 12 October 2012, at 07:31.
88 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