How to hide ScrollBar in ListBox
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.


(no comments yet)