Vcl.Forms.TScrollBox

From RAD Studio API Documentation
Jump to: navigation, search

Vcl.Forms.TScrollingWinControlVcl.Controls.TWinControlVcl.Controls.TControlSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTScrollBox

Delphi

TScrollBox = class(TScrollingWinControl)

C++

class PASCALIMPLEMENTATION TScrollBox : public TScrollingWinControl

Properties

Type Visibility Source Unit Parent
class public
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms Vcl.Forms

Description

TScrollBox represents a scrolling area (a scroll box) in a window.

Use TScrollBox to create a scroll box in a window.

One use of a scroll box is to prevent areas of a window, such as a toolbar or status bar built with TPanel components, from scrolling. To prevent a toolbar and status bar from scrolling, hide the window's scroll bars, and then position a scroll box in the client area of the window between the toolbar and status bar. The scroll bars associated with the scroll box will appear to belong to the window, but will scroll only the area inside the scroll box.

Another use of scroll boxes is to create multiple scrolling areas (views) in a window. Views are common in commercial word-processor, spreadsheet, and project management applications.

A scroll box can contain objects, such as TButton and TCheckBox objects.

See Also