Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: eiksbobs.h
Link against:

Class MEikScrollBarObserver

MEikScrollBarObserver

Support

Supported from 6.0

Description

This mixin is implemented by classes wishing to receive notification about scroll events from a scroll bar. Each scroll bar has a scroll bar observer registered with it in its construction, and will call the HandleScrollEventL() of its observer when the user moves the scroll bar.

Scroll bar observers are not owned by their scroll bar, and must be deleted explicitly. It is possible to register the same scroll bar observer with many scroll bars. This class is intended for derivation by all classes interested in scroll events from CEikScrollBars.

Defined in MEikScrollBarObserver:
EEikScrollBottom, EEikScrollDown, EEikScrollEnd, EEikScrollHome, EEikScrollLeft, EEikScrollPageDown, EEikScrollPageLeft, EEikScrollPageRight, EEikScrollPageUp, EEikScrollRight, EEikScrollThumbDragHoriz, EEikScrollThumbDragVert, EEikScrollThumbReleaseHoriz, EEikScrollThumbReleaseVert, EEikScrollTop, EEikScrollUp, HandleScrollEventL(), TEikScrollEvent

See also:


Public member function


HandleScrollEventL()

virtual void HandleScrollEventL
    (CEikScrollBar* aScrollBar,
     TEikScrollEvent aEventType)=0;

Description

Handles scroll events. This function is called by the CEikScrollBar object with which this scroll bar observer object is registered. Implementations should handle scroll events appropriately.

Parameters

CEikScrollBar* aScrollBar

Pointer to the originating scroll bar object.

TEikScrollEvent aEventType

A scroll event.

[Top]


Enumerations


Enum TEikScrollEvent

TEikScrollEvent

Description

Communicates types of user interaction with scrollbars. To receive notification of scroll bar events, classes must implement the mixin MEikScrollBarObserver. Each scroll bar has a scroll bar observer registered with it in its construction, and will call the HandleScrollEventL() of its observer when the user moves the scroll bar.

EEikScrollLeft

User scrolled leftwards.

EEikScrollUp

User scrolled upwards.

EEikScrollRight

User scrolled rightwards.

EEikScrollDown

User scrolled downwards.

EEikScrollPageLeft

User scrolled leftwards by a page.

EEikScrollPageUp

User scrolled upwards by a page.

EEikScrollPageRight

User scrolled rightwards by a page.

EEikScrollPageDown

User scrolled downwards by a page

EEikScrollHome

User scrolled to the maximum extent leftwards.

EEikScrollTop

User scrolled to the maximum extent upwards.

EEikScrollEnd

User scrolled to the maximum extent rightwards.

EEikScrollBottom

User scrolled to the maximum extent downwards.

EEikScrollThumbDragHoriz

User dragged the thumb horizontally.

EEikScrollThumbDragVert

User dragged the scroll thumb vertically.

EEikScrollThumbReleaseHoriz

User released the scroll thumb on a horizontal scroll bar.

EEikScrollThumbReleaseVert

User released the scroll thumb on a vertical scroll bar.