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

TScrollingWinControl

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

Class of a windowed control with incorporated scroll bars.

Declaration

Source position: forms.pp line 154

type TScrollingWinControl = class(TCustomControl) end;

protected

  class procedure WSRegisterClass; override;

  

Registers this component class with the current WidgetSet.

  procedure AlignControls(); override;

  

Aligns all child controls.

  function AutoScrollEnabled; virtual;

  procedure CalculateAutoRanges; virtual;

  procedure CreateWnd; override;

  

Creates the interface object (widget) and assigns it to Handle.

  function GetClientScrollOffset; override;

  

The virtual origin of the physical client area.

  function GetLogicalClientRect; override;

  

Logical client area, can be bigger than the visible client area.

  procedure DoOnResize; override;

  

Invokes the OnResize notification handler.

  procedure GetPreferredSizeClientFrame(); override;

  procedure WMSize(); message;

  procedure WMHScroll(); message;

  

Delegates scroll messages to the horizontal ScrollBar.

  procedure WMVScroll(); message;

  

Delegates scroll messages to the vertical ScrollBar.

  procedure ComputeScrollbars; virtual;

  

Updates Page, AutoRange, IsScrollBarVisible, returns True on changes.

  procedure SetAutoScroll(); virtual;

  procedure Loaded; override;

  

Also initializes the scroll bars.

  procedure Resizing(); virtual;

  property AutoScroll: Boolean; [rw]

  

Allows to show ScrollBars only if needed (when True).

  procedure SetAutoSize(); override;

  

Allows to automatically adjust the size of the control, according to its content.

public

  constructor Create(); override;

  destructor Destroy; override;

  procedure UpdateScrollbars;

  

Initializes or updates the ScrollBars.

  class function GetControlClassDefaultSize; override;

  

Returns the default size for this class of controls (when added to a form).

  procedure ScrollBy(); override;

  

Tells the widget to scroll the client area relative.

  procedure ScrollInView();

published

  property HorzScrollBar: TControlScrollBar; [rw]

  

The horizontal scroll bar (LCL control).

  property VertScrollBar: TControlScrollBar; [rw]

  

The vertical scroll bar (LCL control).

Inheritance

TScrollingWinControl

  

Class of a windowed control with incorporated scroll bars.

|

TCustomControl

  

The base class for windowed controls which paint themselves.

|

TWinControl

  

The base class for controls which can contain other (child) controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components associated with widgets.

|

TComponent

?

TObject

Description

This class introduces a logical (virtual) client area, part of which is visible in the physical (visible) client area. ScrollBars allow the user to scroll through the logical client area.

See also

TControlScrollBar

  

Type of a scrollbar in a #lcl.Forms.TScrollingWinControl.

TForm

TScrollBox

  

A windowed control with scroll bars.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.