Class TCastleScrollView

Unit

Declaration

type TCastleScrollView = class(TCastleScrollViewCustom)

Description

Container for a user interface children that can be scrolled vertically. Add the children (that should be scrolled) to the ScrollArea. We automatically show a scrollbar, and handle various scrolling inputs to be functional on both desktops and mobile (we handle scrolling by keys, mouse wheel, dragging by scrollbar, dragging the whole area - see EnableDragging).

Hierarchy

Overview

Methods

Protected function GetPageSize: Single; override;
Protected function GetCompleteSize: Single; override;
Protected procedure DoScrollChange; override;
Public constructor Create(AOwner: TComponent); override;

Properties

Published property ClipChildren default true;
Published property ScrollArea: TInternalCastleScrollArea read FScrollArea;

Description

Methods

Protected function GetPageSize: Single; override;
 
Protected function GetCompleteSize: Single; override;
 
Protected procedure DoScrollChange; override;
 
Public constructor Create(AOwner: TComponent); override;
 

Properties

Published property ClipChildren default true;

Scroll view rendering makes sense only when ClipChildren is True.

Published property ScrollArea: TInternalCastleScrollArea read FScrollArea;

Children you add here will be scrolled. To have a useful scrolling area:

  • Add some children to ScrollArea,

  • Set proper size of the ScrollArea (you can set an explicit size, or use TCastleUserInterface.AutoSizeToChildren),

  • Leave the ScrollArea anchors as default: ScrollArea should be anchored to the top-left corner of the parent.


Generated by PasDoc 0.15.0.