VCL.Scrollbar Sample

From RAD Studio Code Examples
Jump to: navigation, search

Language:

This sample demonstrates how to use the TScrollBar component.

Contents

Location

You can find the scrollbar sample project at:

Description

The application creates a form with a scroll bar, edits, and a button. The edits indicate the current, minimum, and maximum position of the thumb tab and also the steps used to move it on the scroll bar. The Apply button updates the scroll bar according to the parameters in the edits.

How to Use the Sample

  1. Navigate to Start > Programs > Embarcadero RAD Studio > Samples and open scrollba.cbproj.
  2. Press F9 or choose Run > Run.

Files

The project contains one source file, main.pas, which contains the main form class.

Classes

TFormMain, the class corresponding to the main form, handles the events that occur when interacting with the visual components on the form.

Implementation

Uses

Personal tools