[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

TScrollingWinControl

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TScrollingWinControl - a class of Window Contrl that has one or more scroll bars

Declaration

Source position: forms.pp line 148

type TScrollingWinControl = class(TCustomControl)

protected

  property AutoScroll: Boolean; [rw]

  

Does auto-scrolling apply?

  procedure AlignControls(); override;

  

AlignControls - align the specified control with a given client rectangle

  procedure CreateWnd; override;

  

Creates the Window

  function GetClientScrollOffset; override;

  

Find the offset for scrolling of the client

  function GetLogicalClientRect; override;

  

Logical size of client area (e.g. in a TScrollBox the logical client area can be bigger than the visual)

  procedure DoOnResize; override;

  

Calls OnResize

  procedure WMHScroll(); message;

  

WMHScroll - system message method for horizontal scrolling

  procedure WMVScroll(); message;

  

WMVScroll - system message method for vertical scroling

  procedure ScrollBy();

  

ScrollBy - amount by which to scroll

  function ComputeScrollbars; virtual;

  

ComputeScrollbars - returns True if scroll bar positions need to be computed

  procedure ScrollbarHandler(); virtual;

  

ScrollbarHandler - method for handling scroll bars of specified kind at specified position

  procedure Loaded; override;

  

public

  constructor Create(); override;

  destructor Destroy; override;

  procedure UpdateScrollbars;

  

Update the position of the scroll indicatores in the scroll bars

  function HasVisibleScrollbars; virtual;

  

Whether the scroll bars are visible

  function GetControlClassDefaultSize; override;

  

Find the default size for this class of controls (by reference to parents)

published

  property HorzScrollBar: TControlScrollBar; [rws]

  

The properties of the horizontal scroll bar

  property VertScrollBar: TControlScrollBar; [rws]

  

The properties of the vertical scroll bar

end;

Inheritance

TScrollingWinControl

  

TScrollingWinControl - a class of Window Contrl that has one or more scroll bars

|

TCustomControl

  

TCustomControl - a base class for many window controls

|

TWinControl

  

TWinControl - the base class for all windowed controls

|

TControl

  

TControl - the main ancestor class for visual controls.

|

TLCLComponent

?

TObject

Description

Scrolling Window Control: A window control with scroll bars.
An ancestor class for many forms with scrolling windows