API published in: S60 1st Ed
Link against: eikcoctl.lib
Required Capabilities
None
#include <eikscrlb.h>
Inherits CEikBorderedControl.
Inherited by CAknDoubleSpanScrollBar, and CEikArrowHeadScrollBar.
Scroll bars are used when the contents of a view require a greater area than can be physically displayed. Scroll bars allow a user to move different parts of the content into the view and to indicate what proportion of the total contents are visible at any one time.
Public Types |
|
typedef TEikScrollBarFlags | TAknScrollBarFlags |
enum | TOrientation { EVertical = SLafScrollBar::EVertical, EHorizontal = SLafScrollBar::EHorizontal } |
Scroll bar orientation. More... |
|
enum | TScrollBarType { ENormalScrollBar = 0x0, EArrowHead = 0x200, EDoubleSpan = 0x400 } |
Type of the scroll bar. More... |
|
enum | TEikScrollBarFlags { EEikScrollBarDefaultBehaviour, EEikScrollBarNoNudgeButtons, EEikScrollBarHasPageButtons, EEikScrollBarHasHomeEndButtons, EEikScrollBarNoShaftOrThumb, EEikScrollBarShaftButNoThumb, EButtonsAtStartOfShaft, EButtonsAtEndOfShaft, EButtonsEitherSideOfShaft, ENoAutoDimming } |
Scroll bar initialisation flags. More... |
|
Public Member Functions |
|
IMPORT_C | ~CEikScrollBar () |
Destructor. |
|
IMPORT_C | CEikScrollBar () |
C++ default constructor. |
|
virtual IMPORT_C void | ConstructL (MEikScrollBarObserver *aScrollBarObserver, const CCoeControl *aParent, TOrientation aOrientation, TInt aLength, TInt aScrollBarFlags=EEikScrollBarDefaultBehaviour) |
Second phase constructor of the scroll bar. |
|
IMPORT_C void | SetLengthL (TInt aLength) |
Not implemented. |
|
IMPORT_C void | SetModelL (const TEikScrollBarModel *aModel) |
Change the scrollbar model. |
|
IMPORT_C void | SetModel (const TEikScrollBarModel *aModel) |
Change the scrollbar model. |
|
IMPORT_C void | SetLengthAndModelL (TInt aLength, const TEikScrollBarModel *aModel) |
Change the model at once to avoid a double update of the scroll bar. |
|
IMPORT_C void | SetModelThumbPosition (TInt aThumbPos) |
Not implemented. |
|
IMPORT_C void | SetFocusPosToThumbPos (TInt aFocusPosition) |
Not implemented. |
|
void | SetScrollBarObserver (MEikScrollBarObserver *aScrollBarObserver) |
Allows scroll bar observer to be changed also after the construction. |
|
const TEikScrollBarModel * | Model () const |
Gets the scroll bar model used by this scroll bar. |
|
IMPORT_C TInt | ThumbPosition () const |
Gets the position within the scroll bar model. |
|
IMPORT_C TInt | ScrollBarBreadth () const |
Gets the height of a horizontal scrollbar or width of a vertical scrollbar. |
|
IMPORT_C void | SetDecreaseButtonsDimmed (TBool aDimmed) |
Not implemented. |
|
IMPORT_C void | SetIncreaseButtonsDimmed (TBool aDimmed) |
Not implemented. |
|
IMPORT_C void | SetAllButtonsDimmed (TBool aDimmed) |
Not implemented. |
|
CAknScrollButton * | IncreaseNudgeButton () const |
Gets handle to the controls that draw arrows in the both ends of spanned scrollbar. |
|
CAknScrollButton * | DecreaseNudgeButton () const |
Gets handle to the controls that draw arrows in the both ends of spanned scrollbar. |
|
IMPORT_C void | SetContainingCba (CEikCba *aCba) |
Sets command button area. |
|
IMPORT_C void | MakeVisible (TBool aVisible) |
From CCoeControl . |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl . |
|
TScrollBarType | ScrollBarType () |
Gets the scroll bar type. |
|
Static Public Member Functions |
|
static IMPORT_C TInt | DefaultScrollBarBreadth () |
Gets the default width of the scroll bar. |
|
static IMPORT_C TInt | MinVisibleLength (const TInt aScrollBarFlags) |
Not implemented. |
|
Data Fields |
|
TDblQueLink | iSBLink |
Not used, but cannot be removed due binary compatibility issues. |
|
Protected Types |
|
enum | TPrivateScrollBarFlags { ENoComponentsToDisplay = 0x10000, EIncreaseButtonsDimmed = 0x20000, EDecreaseButtonsDimmed = 0x40000 } |
Flags to determine whether there are visible components and whether to dim the increase, or decrease, buttons. More... |
|
enum | TPointerDownOn { ENone, EHomeButton, EDecreasePageButton, EDecreaseNudgeButton, EDecreaseShaft, EThumb, EIncreaseShaft, EIncreaseNudgeButton, EIncreasePageButton, EEndButton } |
Determines where on a scroll bar a pointer down event occurred. More... |
|
enum | TShaftRedrawRequired { ENoRedrawRequired, ERedrawShaft } |
Determines whether to redraw the scroll bar shaft. More... |
|
enum | TWhichButtons { EIncreaseOnly, EDecreaseOnly, EAll } |
Determines which buttons are displayed. More... |
|
Protected Member Functions |
|
IMPORT_C CCoeControl * | ComponentControl (TInt aIndex) const |
From CCoeControl . |
|
IMPORT_C TInt | CountComponentControls () const |
From . |
|
void | CreateRequiredComponentsL () |
Allocates and constructs all the required components of the scrollbar. |
|
void | DestroyButton (CAknScrollButton *&aButton) |
Destroys a button. |
|
virtual IMPORT_C void | SetButtonPositionL (CAknScrollButton *aButton) |
Not implemented. |
|
Protected Attributes |
|
SEikScrollBarButtons | iButtons |
Scroll bar buttons struct. |
|
TOrientation | iOrientation |
Scroll bar orientation. |
|
CEikScrollBarExtensionImpl * | iExtension |
A pointer to CEikScrollBarExtensionImpl class. |
|
Friends |
|
class | CEikScrollBarExtension |
class | CAknDoubleSpanScrollBarExtension |
class | CEikScrollBarFrame |
The scroll bar frame is a control assemblage manager that relates a control, or control body, to two scroll bars and a corner
window. |
|
Data Structures |
|
struct | SEikScrollBarButtons |
Encapsulates pointers to the scroll bar buttons. More... |
|
|
|
Scroll bar orientation. |
|
Determines where on a scroll bar a pointer down event occurred.
|
|
Flags to determine whether there are visible components and whether to dim the increase, or decrease, buttons. |
|
Type of the scroll bar. |
|
Determines whether to redraw the scroll bar shaft. |
|
Determines which buttons are displayed. |
|
Destructor. |
|
C++ default constructor. |
|
From Gets the specified scrollbar component. Each component control is identified by an index, where the index depends on the order the controls were added: the first is given an index of 0, the next an index of 1.
Reimplemented in CAknDoubleSpanScrollBar. |
|
Second phase constructor of the scroll bar.
|
|
From . Gets the number of controls contained in this scrollbar.
Reimplemented in CAknDoubleSpanScrollBar. |
|
Allocates and constructs all the required components of the scrollbar. |
|
Gets handle to the controls that draw arrows in the both ends of spanned scrollbar. These arrows are for pen support to enable exact moving of the scrollbar with pen. The arrow is tapped with the pen to move the scrollbar with one step.
|
|
Gets the default width of the scroll bar.
|
|
Destroys a button.
|
|
From Called by the framework to handle pointer events.
Reimplemented from CEikBorderedControl. Reimplemented in CEikArrowHeadScrollBar, and CAknDoubleSpanScrollBar. |
|
Gets handle to the controls that draw arrows in the both ends of spanned scrollbar. These arrows are for pen support to enable exact moving of the scrollbar with pen. The arrow is tapped with the pen to move the scrollbar with one step.
|
|
From Sets this control as visible or invisible.
If
Reimplemented in CAknDoubleSpanScrollBar. |
|
Not implemented.
|
|
Gets the scroll bar model used by this scroll bar. |
|
Gets the height of a horizontal scrollbar or width of a vertical scrollbar.
|
|
Gets the scroll bar type.
|
|
Not implemented.
|
|
Not implemented.
|
|
Sets command button area.
This function should only be used by
|
|
Not implemented.
|
|
Not implemented.
|
|
Not implemented.
|
|
Change the model at once to avoid a double update of the scroll bar.
|
|
Not implemented.
|
|
Change the scrollbar model.
|
|
Change the scrollbar model.
|
|
Not implemented.
|
|
Allows scroll bar observer to be changed also after the construction.
This function is not exported, but the applications can use it via
|
|
Gets the position within the scroll bar model.
This function would normally be called by an
|
|
|
|
The scroll bar frame is a control assemblage manager that relates a control, or control body, to two scroll bars and a corner window. A corner window is that part of the screen that is common to both the horizontal, and the vertical elements of a scroll bar. This class helps with access to, and set up of, scroll bars and also with the layout of the scrolled control or control body. A scroll bar frame is not a control, but it does implement the standard control composite pattern to manage the assemblage. |
|
Scroll bar buttons struct. |
|
A pointer to |
|
Scroll bar orientation. |
|
Not used, but cannot be removed due binary compatibility issues. |