This class manages a horizontal or vertical scroll bar on a TSimpleGraph control.
In addition to the properties of the TPersistent
class, the TGraphScrollBar
class provides the following properties:
-
published ButtonSize: Integer default 0
Specifies the sizes of the buttons in the scroll bar.If the scroll bar is horizontal,
ButtonSize
is the width of the arrow buttons in pixels.If the scroll bar is vertical,
ButtonSize
is the height of the arrow buttons in pixels.Set this property to zero to use the system's default button size.
-
published Color: TColor default clBtnHighlight
Specifies the scroll bar's color. -
published Increment: TScrollBarInc default 8
Determines how far the display moves when the user clicks one of the small end arrows on the scroll bar. -
public Kind: TScrollBarKind
(read-only)
Indicates whether the scroll bar is horizontal or vertical. -
published Margin: Word default 0
Determines the minimum number of pixels that must separate a graph object from the edge of the TSimpleGraph control. At runtime, whenever a graph object is less thanMargin
pixels from the edge and theVisible
property is set totrue
, the scroll bar appears. -
public Owner: TSimpleGraph
(read-only)
Determines the TSimpleGraph control that owns this scroll bar. -
published ParentColor: Boolean default true
Specifies whether the scroll bar should use the color of its parent TSimpleGraph control.When the value of the
Color
property is changed, theParentColor
property is automatically set tofalse
. -
published Position: Integer default 0
Specifies the position of the thumb tab on the scroll bar.Use
Position
to programmatically scroll the client area of the TSimpleGraph control.The value of
Position
changes (from 0 toRange
) at runtime as the user scrolls the scroll bar. -
public Range: Integer
(read-only)
Determines how far the scrolling region of the TSimpleGraph control can move. -
public ScrollPos: Integer
(read-only)
Indicates the position of the thumb tab.The read-only
ScrollPos
property gets the current value of thePosition
property when the scroll bar is visible. If the scroll bar is not visible, the value of this property is 0. -
published Size: Integer default 0
Specifies the scroll bar's size.If the scroll bar is horizontal,
Size
is the width of the scroll bar in pixels.If the scroll bar is vertical,
ButtonSize
is the height of the scroll bar in pixels.Set this property to zero to use the system's default size.
-
published Smooth: Boolean default false
Specifies whether the amount the TSimpleGraph control scrolls is dynamically computed. -
published Style: TScrollBarStyle default ssRegular
Determines whether the scroll bar appears three-dimensional, flat, or uses hot tracking. -
published ThumbSize: Integer default 0
Specifies the length of the scroll bar's thumb tab. -
published Tracking: Boolean default false
Determines whether the graph on the TSimpleGraph control moves before the thumb tab is released. -
published Visible: Boolean default true
Determines whether the scroll bar appears.If
Visible
is set totrue
, the scroll bar appears whenever a graph object is less thanMargin
pixels from the edge of the TSimpleGraph control.If
Visible
is set tofalse
, the scroll bar is never visible.
In addition to the methods of the TPersistent
class, the TGraphScrollBar
class has the following public method:
-
function IsScrollBarVisible: Boolean;
Determines whether the scroll bar is currently visible on the TSimpleGraph control.Returns
true
if the scroll bar is visible; otherwise, returnsfalse
.