|
TRVScroller |
Top Previous Next |
|
This class is an ancestor of all visual components in TRichView family (TRichView, TRichViewEdit, TDBRichView, TDBRichViewEdit, TRVPrintPreview). Unit RVScroll; Syntax TRVScroller = class(TCustomControl) HierarchyTObject TPersistent TComponent TControl TWinControl TCustomControl Main FeaturesThis 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 MethodsThe most important properties of TRVScroller are: ▪VScrollPos –- position of vertical scrollbar, measured in "RVSU"; ▪VScrollMax (read-only) –- maximum value of VScrollPos; ▪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). |