A scroll bar control for visually setting an integer value.
![]() | PScrollBar ( PInteractor * parent, PSCROLLBAR_VALUE max, PSCROLLBAR_VALUE min, PSCROLLBAR_VALUE val, PSCROLLBAR_VALUE sml, PSCROLLBAR_VALUE lge ) Create a new scroll bar control with the specified default parameters for controlling the scroll bars operation. |
![]() | PScrollBar ( PInteractorLayout * parent, PRESOURCE_ID ctlID, const PNotifier & notify, PSCROLLBAR_VALUE * valuePtr ) Create control from interactor layout with the specified control ID. |
![]() | ~PScrollBar () Destroy the scroll bar. |
![]() | TransferValue ( int option ) This function transfers the value of the control to or from the variable pointed to by the value pointer member variable. |
![]() | SetValue ( PSCROLLBAR_VALUE val, BOOL redraw = TRUE ) Set the current thumb position of the scroll bar. |
![]() | GetValue () const Get the current thumb position of the scroll bar. |
![]() | GetValuePointer () const Get the current value pointer associated with the control. |
![]() | SetValuePointer ( PSCROLLBAR_VALUE * ptr ) Set the current value pointer associated with the control. |
![]() | SetMaximum ( PSCROLLBAR_VALUE val, BOOL redraw = TRUE ) Set the maximum thumb position of the scroll bar. |
![]() | GetMaximum () const Get the maximum thumb position of the scroll bar. |
![]() | SetMinimum ( PSCROLLBAR_VALUE val, BOOL redraw = TRUE ) Set the minimum thumb position of the scroll bar. |
![]() | GetMinimum () const Get the minimum thumb position of the scroll bar. |
![]() | SetSmallNudge ( PSCROLLBAR_VALUE val ) Set the the amount by which the up and down arrows will move the thumb each time the are clicked. |
![]() | GetSmallNudge () const Get the the amount by with the up and down arrows will move the thumb. |
![]() | SetLargeNudge ( PSCROLLBAR_VALUE val ) Set the the amount by which clicking above or below the thumb will move it. |
![]() | GetLargeNudge () const Get the the amount by which clicking above or below the thumb will move it. |
![]() | PNotifier codes |
![]() | Codes passed to the notification function on changes of state. |
![]() | Overrides from class PControl |
![]() | New functions for class |
![]() | Member variables |
Overrides from class PInteractor
Overrides from class PInteractor
Overrides from class PObject
System callback functions.
A scroll bar control for visually setting an integer value.The exact appearance of a scroll bar is platform dependent. However certain functionality exists for all platforms. These are that the scroll bar allows values between a minimum and maximum to be set via small nudges (typically a up or down arrow), large nudges (typically the page up or down area to either side of the thumb) or by explicitly setting a value (typically by dragging the thumb).
This is an abstract class combining the common functionality of PHorizontalScrollBar and PVerticalScrollBar controls.
A change to a scroll bar may proceed for some time, for example if the
mouse button is pressed in the down arrow and held down. An auto-repeat
would occur to continually change the scroll bar value until it is
released.
PScrollBar( PInteractorLayout * parent, PRESOURCE_ID ctlID, const PNotifier & notify, PSCROLLBAR_VALUE * valuePtr )
ctlID - Identifier for the control in the layout.
notify - Function to call when changes state.
valuePtr - Variable to change to the scrollbar value.virtual ~PScrollBar()
PNotifier codes
Codes passed to the notification function on changes of state.
EndTrack
StartTrack
Tracking
Overrides from class PControl
virtual void TransferValue( int option )
New functions for class
void SetValue( PSCROLLBAR_VALUE val, BOOL redraw = TRUE )
redraw - Whether to update the screen.PSCROLLBAR_VALUE GetValue() const
PSCROLLBAR_VALUE* GetValuePointer() const
void SetValuePointer( PSCROLLBAR_VALUE * ptr )
void SetMaximum( PSCROLLBAR_VALUE val, BOOL redraw = TRUE )
redraw - Whether to update the screen.PSCROLLBAR_VALUE GetMaximum() const
void SetMinimum( PSCROLLBAR_VALUE val, BOOL redraw = TRUE )
redraw - Whether to update the screen.PSCROLLBAR_VALUE GetMinimum() const
void SetSmallNudge( PSCROLLBAR_VALUE val )
PSCROLLBAR_VALUE GetSmallNudge() const
void SetLargeNudge( PSCROLLBAR_VALUE val )
PSCROLLBAR_VALUE GetLargeNudge() const
Alphabetic index HTML hierarchy of classes or Java