API published in: S60 1st Ed
Link against: eikcoctl.lib
Required Capabilities
None
#include <eiksbfrm.h>
Inherited by CEikCbaScrollBarFrame.
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.
Public Types |
|
enum | TScrollBarType { ENormalScrollBar = 0x0, EArrowHead = 0x200, EDoubleSpan = 0x400 } |
Defines the type of scroll bar. More... |
|
enum | TScrollBarSide { EBottomOrRight = 0x0, ETopOrLeft = 0x800 } |
Defines where the scroll bar is located. More... |
|
enum | TScrollBarManagement { EComponent, EFloating, EApplicationScrollBar } |
Determines how the scroll bar frame manages scroll bars. More... |
|
enum | TScrollBarFrameFlags { EHVisible = 0x01, EVVisible = 0x02 } |
Defines that is the horizontal or the vertical (spanned) scroll bar visible. More... |
|
Public Member Functions |
|
DECLARE_TYPE_ID (0x101F8672) enum TScrollBarVisibility | |
Defines the scroll bar’s visibility. |
|
CEikScrollBarFrame () | |
C++ default constructor. |
|
IMPORT_C | CEikScrollBarFrame (CCoeControl *aParentWindow, MEikScrollBarObserver *aObserver, TBool aPreAlloc=EFalse) |
Constructor. |
|
IMPORT_C | ~CEikScrollBarFrame () |
Destructor. |
|
CEikScrollBarFrame (CCoeControl *aParentWindow, MEikScrollBarObserver *aObserver, TBool aPreAlloc, TBool aDoubleSpan) | |
Constructor. |
|
void | InitExtension (CCoeControl *aParentWindow, MEikScrollBarObserver *aObserver) |
Initializes a new CEikScrollBarFrameExtension object. |
|
IMPORT_C void | DrawScrollBarsNow () const |
Forces any scroll bars and the corner window if it is visible to be redrawn. |
|
void | DrawScrollBarsDeferred () const |
Tell scroll bars and the corner window to redraw if it is visible. |
|
IMPORT_C void | SetScrollBarVisibilityL (TScrollBarVisibility aHVisibility, TScrollBarVisibility aVVisibility) |
Sets the visibility state for both the horizontal and the vertical scroll bars. |
|
TScrollBarVisibility | VScrollBarVisibility () const |
Determines the vertical scroll bar’s visibility. |
|
IMPORT_C void | SetScrollBarFrameObserver (MEikScrollBarObserver *aObserver) |
Sets scrollbar observers. |
|
IMPORT_C TBool | Tile (TEikScrollBarModel *aVModel) |
Sets the vertical scrollbar mode. |
|
IMPORT_C TBool | TileL (TEikScrollBarModel *aHModel, TEikScrollBarModel *aVModel, TRect &aClientRect, TRect &aInclusiveRect, const TEikScrollBarFrameLayout &aLayout) |
Tiles the client area and the scroll bars managed by the frame. |
|
IMPORT_C void | MoveThumbsBy (TInt aDeltaX, TInt aDeltaY) |
Moves the scroll bar thumbs by the specified amounts. |
|
IMPORT_C void | MoveHorizThumbTo (TInt aHorizThumbPos) |
Moves the horizontal scroll bar thumb to the position aHorizThumbPos . |
|
IMPORT_C void | MoveVertThumbTo (TInt aVertThumbPos) |
Moves the vertical scroll bar thumb to the position aVertThumbPos . |
|
IMPORT_C void | SetVFocusPosToThumbPos (TInt aFocusPosition) |
Moves the vertical scroll bar thumb to the position aFocusPosition . |
|
IMPORT_C TInt | ScrollBarBreadth (CEikScrollBar::TOrientation aOrientation) const |
Returns the breadth of the scroll bar idenitified by aOrientation , or zero if none exists. |
|
IMPORT_C void | SetAdjustsHorizontalModel (TBool aAdjusts) |
Not implemented. |
|
IMPORT_C void | SetAdjustsVerticalModel (TBool aAdjusts) |
Not implemented. |
|
void | SetScrollBarFrameFlags (TInt aMask) |
Sets scrollbar frame flags. |
|
IMPORT_C TBool | ScrollBarExists (CEikScrollBar::TOrientation aOrientation) const |
Determines whether the scroll bar specified by aOrientation exists. |
|
IMPORT_C TInt | CountComponentControls () const |
From CCoeControl . |
|
IMPORT_C CCoeControl * | ComponentControl (TInt aIndex) const |
From CCoeControl . |
|
IMPORT_C CEikScrollBar * | GetScrollBarHandle (CEikScrollBar::TOrientation aOrientation) const |
Returns a pointer to the scroll bar identified by orientation aOrientation . |
|
IMPORT_C CEikScrollBar * | VerticalScrollBar () const |
Returns a pointer to the vertical scroll bar. |
|
IMPORT_C void | SetTypeOfHScrollBar (TScrollBarType aType) |
Sets the type of horizontal scroll bar. |
|
IMPORT_C void | SetTypeOfVScrollBar (TScrollBarType aType) |
Sets the type of vertical scroll bar. |
|
IMPORT_C TScrollBarType | TypeOfHScrollBar () const |
Returns the control type of the horizontal scroll bar. |
|
IMPORT_C TScrollBarType | TypeOfVScrollBar () const |
Returns the control type of the vertical scroll bar. |
|
IMPORT_C TBool | IsArrowHeadScrollBar (TInt aFlag) const |
Checks if the vertical scrollbar type is EArrowHead . |
|
void | DisconnectExternalScrollBar (CEikScrollBar *aScrollBar) |
This method is used only internally by the CEikScrollBar . |
|
IMPORT_C void | CreateDoubleSpanScrollBarsL (TBool aWindowOwning, TBool aRemote) |
This method creates double span type scrollbars into this frame. |
|
IMPORT_C void | CreateDoubleSpanScrollBarsL (TBool aWindowOwning, TBool aRemote, TBool aVertical, TBool aHorizontal) |
This method creates double span type scrollbars into this frame. |
|
IMPORT_C void | Tile (TEikScrollBarModel *aVModel, TRect &aVScrollBar) |
Tiles the vertical EDouble span type scroll bar managed by the frame. |
|
IMPORT_C void | Tile (TEikScrollBarModel *aHModel, TEikScrollBarModel *aVModel) |
Sets the models of the scrollbars. |
|
IMPORT_C TScrollBarVisibility | ScrollBarVisibility (CEikScrollBar::TOrientation aOrientation) const |
Gets the visibility of given scrollbar orientation. |
|
IMPORT_C TInt | DrawBackground (TBool aDrawHorizontal, TBool aDrawVertical) |
Sets the background drawing for the double spanned scrollbars. |
|
IMPORT_C TInt | DrawBackgroundState (TBool &aDrawHorizontal, TBool &aDrawVertical) |
Gets the state of the background drawing for the double spanned scrollbars. |
|
CEikScrollBar * | HorizontalScrollBar () const |
Gets a pointer to the horizontal scroll bar. |
|
MEikScrollBarObserver * | ScrollBarFrameObserver () |
Sets scrollbar observers. |
|
Protected Member Functions |
|
void | SetParentWindow (CCoeControl *aParentWindow) |
Sets parent window. |
|
CCoeControl * | ParentWindow () const |
Gets a pointer to the parent window. |
|
Protected Attributes |
|
SBarData | iV |
Struct object. |
|
Friends |
|
class | CEikScrollBarFrameExtension |
Data Structures |
|
struct | SBarData |
Struct. More... |
|
Defines that is the horizontal or the vertical (spanned) scroll bar visible. Applicaple only for spanned scroll bars. |
|
|
Defines where the scroll bar is located. |
|
Defines the type of scroll bar. |
|
C++ default constructor. |
|
Constructor. Constructs a scroll bar frame object.
|
|
Destructor. |
|
Constructor.
Internal only to Eikcoctl.lib use. Parameter
|
|
From Gets the component specified by index. Within a compound control, 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, and so on.
|
|
From Gets the number of controls contained in a compound control.
|
|
This method creates double span type scrollbars into this frame. Old scrollbars are deleted or disconnected.
|
|
This method creates double span type scrollbars into this frame. Old scrollbars are deleted or disconnected.
iSBFrame=new(ELeave) CEikScrollBarFrame(this, NULL, ETrue); iSBFrame->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto); iSBFrame->CreateDoubleSpanScrollBarsL(ETrue, EFalse); Note that double span scrollbar types requires different model classes to be used in places of @c TEikScrollBarModel of this scrollbar frame API:s other method calls. Scrollbar type Required model (in places of TEikScrollBarModel) --------------- ------------------------------------------------ EDoubleSpan TAknDoubleSpanScrollBarModel EArrowHead TEikScrollBarModel // model for double span type scrollbar TAknDoubleSpanScrollBarModel vModel; // model for double span type scrollbar TAknDoubleSpanScrollBarModel hModel; iSBFrame->Tile(vModel, iVRect); |
|
Defines the scroll bar’s visibility. Scroll bar not visible. Scroll bar visible. Scroll bar visible if required. |
|
This method is used only internally by the Disconnects externally connected scrollbar.
|
|
Sets the background drawing for the double spanned scrollbars. This method can be used to enable or disable the drawing of the scrollbar background via mop chain.
|
|
Gets the state of the background drawing for the double spanned scrollbars. This method can be used to get the state of drawing of the scrollbar background via mop chain.
|
|
Tell scroll bars and the corner window to redraw if it is visible. |
|
Forces any scroll bars and the corner window if it is visible to be redrawn. |
|
Returns a pointer to the scroll bar identified by orientation
|
|
Gets a pointer to the horizontal scroll bar.
|
|
Initializes a new
|
|
Checks if the vertical scrollbar type is
|
|
Moves the horizontal scroll bar thumb to the position
This function is used to update the scroll bar after an external scroll. The value of
|
|
Moves the scroll bar thumbs by the specified amounts. This updates the scroll bars after an external scroll. The values of the parameters should be supplied in terms of the horizontal and vertical scrolling models respectively. The scrolling models are presumed not to have changed spans.
|
|
Moves the vertical scroll bar thumb to the position This function is used to update the scroll bar after an external scroll. The value of aThumbPos should be supplied in terms of the scrolling model, which is presumed not to have changed spans.
|
|
Gets a pointer to the parent window.
|
|
Returns the breadth of the scroll bar idenitified by
|
|
Determines whether the scroll bar specified by aOrientation exists.
|
|
Sets scrollbar observers.
|
|
Gets the visibility of given scrollbar orientation.
This method should be used instead of a deprecated method
|
|
Not implemented.
|
|
Not implemented.
|
|
Sets parent window.
|
|
Sets scrollbar frame flags.
|
|
Sets scrollbar observers.
|
|
Sets the visibility state for both the horizontal and the vertical scroll bars. This is used when tiling.
|
|
Sets the type of horizontal scroll bar.
Possible values are
|
|
Sets the type of vertical scroll bar.
Possible values are
|
|
Moves the vertical scroll bar thumb to the position
This function is used to update the scroll bar after an external scroll. The value of
|
|
Sets the models of the scrollbars.
|
|
Tiles the vertical The scroll bar is set up according to the scroll bar model and given rectangle which is relative to the parent window of the frame.
EDoublespan type scrollbar the layout can be set also with a helper method from the AknLayoutUtils class:
AknLayoutUtils::LayoutVerticalScrollBar( CEikScrollBarFrame* aScrollBarFrame, const TRect& aControlParent, const TAknWindowLineLayout& aLayout); |
|
Sets the vertical scrollbar mode. Does not actually draw anything until the thumb or focus setting functions are called.
|
|
Tiles the client area and the scroll bars managed by the frame.
The scroll bars are set up according to the scroll bar models;
For
For AknLayoutUtils::LayoutVerticalScrollBar( CEikScrollBarFrame* aScrollBarFrame, const TRect& aControlParent, const TAknWindowLineLayout& aLayout); AknLayoutUtils::LayoutHorizontalScrollBar( CEikScrollBarFrame* aScrollBarFrame, const TRect& aControlParent, const TAknWindowLineLayout& aLayout);
|
|
Returns the control type of the horizontal scroll bar.
|
|
Returns the control type of the vertical scroll bar.
|
|
Returns a pointer to the vertical scroll bar.
|
|
Determines the vertical scroll bar’s visibility.
|
|
|
Struct object. |