[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Type of a scrollbar in a #lcl.Forms.TScrollingWinControl.
Source position: forms.pp line 86
type TControlScrollBar = class(TPersistent) end; |
||
protected |
||
|
The associated TScrollingWinControl. |
|
FPosition: Integer; |
||
function ControlHandle; virtual; |
|
The Handle of the associated TScrollingWinControl. |
function GetAutoScroll; virtual; |
|
The AutoScroll state of the associated TScrollingWinControl. |
function GetIncrement; virtual; |
||
function GetPage; virtual; |
||
function GetPosition; virtual; |
||
function GetRange; virtual; |
||
function GetSize; virtual; |
||
function GetSmooth; virtual; |
||
function HandleAllocated; virtual; |
|
True when the associated TScrollingWinControl has a handle allocated. |
function IsRangeStored; virtual; |
||
procedure ControlUpdateScrollBars; virtual; |
|
Notifies the associated Control of changes. |
procedure InternalSetRange(); virtual; |
|
Checks and propagates the new range to the Control. |
procedure ScrollHandler(); |
|
Handler for the ScrollBar (movement) messages. |
procedure SetIncrement(); virtual; |
||
procedure SetPage(); virtual; |
||
procedure SetPosition(); |
||
procedure SetRange(); virtual; |
||
procedure SetSmooth(); virtual; |
||
procedure SetTracking(); |
||
procedure SetVisible(); virtual; |
||
procedure UpdateScrollBar; virtual; |
|
updates the scroll bar (position, etc) |
procedure InvalidateScrollInfo; |
|
render scroll information non-valid |
function GetHorzScrollBar; virtual; |
|
Get the horizontal scrollbar of Control. |
function GetVertScrollBar; virtual; |
|
Get the vertical scrollbar of Control. |
function ScrollBarShouldBeVisible; virtual; |
|
Determines whether a scrollbar is required. |
public |
||
constructor Create(); |
|
Creates a scrollbar object for AControl. |
procedure Assign(); override; |
|
If Source is a TControlScrollBar, copies properties to itself, else performs inherited Assign. |
function IsScrollBarVisible; virtual; |
|
Determines the current widget state. |
function ScrollPos; virtual; |
|
The scroll Position, zero if not Visible. |
property Kind: TScrollBarKind; [r] |
|
The orientation: horizontal or vertical. |
function GetOtherScrollBar; |
|
Get the ScrollBar of the opposite direction (horz/vert). |
property Size: Integer; [rs] |
|
The adjustable size of the scroll bar. |
function ControlSize; |
||
function ClientSize; |
|
The currently remaining extent of the Parent Control, depending on ScrollBar visibility. |
function ClientSizeWithBar; |
|
The remaining extent of the Parent Control, when the ScrollBar is visible. |
function ClientSizeWithoutBar; |
|
The remaining extent of the Parent Control, when the ScrollBar is not visible. |
published |
||
property Increment: TScrollBarInc; [rw] |
|
The small Position increment, applicable to the scrollbar arrows. |
property Page: TScrollBarInc; [rw] |
|
The slider size, Position increment applicable to the scrollbar area beneath the slider. |
property Smooth: Boolean; [rw] |
|
Enables smooth scrolling, with automatic adjustment of Increment and Page. |
property Position: Integer; [rw] |
|
Position of the slider, 0..Range-Page. |
property Range: Integer; [rws] |
|
The virtual size of the Parent Control. |
property Tracking: Boolean; [rw] |
|
Gives feedback while the slider is dragged. |
property Visible: Boolean; [rw] |
|
Definitely hides the scrollbar when False (default True). |
|
Type of a scrollbar in a #lcl.Forms.TScrollingWinControl. |
|
| | ||
TPersistent |
||
? | ||
TObject |
Scrollable controls supply their own integrated scrollbars, one for horizontal and one for vertical scrolling. This class allows access to (one of) these integrated scrollbars.
A scrollable control has both a physical (visible) client size, and a logical (virtual) client size.
The Range property reflects the total virtual client size, in pixels.
The Page property corresponds to physical (visible) client size, in pixels, excluding the scrollbars. It also determines the size of the slider, relative to the total Range.
The Position property reflects the virtual origin of the visible client area, equivalent to the top coordinate of the slider. The Position can be changed by the user or by code.
Scrollbars usually appear only when Range is higher than Page, i.e. when not the entire content can be shown at the same time. See the ScrollBar property of the scrolling control for details.
|
Class of a windowed control with incorporated scroll bars. |
|
|
A windowed control with scroll bars. |
|
|
The base type for TForm. |
lazarus-ccr.sourceforge.net |