rvico TRichView Reference | TRVScroller

TRVScroller

Properties   Methods   Events

Top  Previous  Next

This class is an ancestor of all visual components in TRichView family (TRichView, TRichViewEdit, TDBRichView, TDBRichViewEdit, TRVPrintPreview).

Unit RVScroll;

Syntax

TCustomRVControl = class (TCustomControl)

TRVScroller = class(TCustomRVControl)

Hierarchy

TObject

TPersistent

TComponent

TControl

TWinControl

TCustomControl

TCustomRVControl

Main Features

This is a control what can scroll its content.

Due to limitation of scrollbar ranges, its vertical scrollbar units are not pixels but special units, "RVSU" (10 pixels by default).

Do not use this class directly in your program. Use its descendants, such as TRichView.

TRVScroller is not registered as a component itself. It introduces some properties and methods used in descendant components.

Main Properties and Methods

The most important properties of TRVScroller are:

VScrollPos - position of vertical scrollbar, measured in "RVSU";

VScrollMax (read-only) -  maximum value of VScrollPos;

NoHScroll  –- disallows horizontal scrolling;

NoVScroll  –- disallows vertical scrolling;

HScrollPos –- position of horizontal scrollbar, measured in pixels;

HScrollMax (read-only) –-  maximum value of HScrollPos;

WheelStep defines speed of mouse wheel scrolling;

InplaceEditor - returns "inplace" editor of some item in document (used in tables for editing cells).

The most important method is:

ScrollTo, scrolls content of the component vertically to the specified position (in pixels).


TRichView © trichview.com