TScrollPanel
A m x n grid of controls, each of which is decorated with a
TViewPort
.Inheritance
Level | Ancestor | Description |
---|---|---|
1 | TObject | Ultimate ancestor in a class hierarchy |
2 | TBaseObject | A base class for objects that can be used instead of TObject . |
3 | TControl | Visual user interface element that can react to user input. |
4 | TPanel | Base class for a TControl that contains other controls. |
5 | TScrollPanel |
Source
UserInterface.Control.Scroll.Panel.pas (43)
Description
The view ports are linked to either a horizontal scroll bar, a vertical scroll bar or both. Every control in a row in the grid shares the same vertical scroll bar, and every control in the same column shares the same horizontal scroll bar. This makes controls scroll simultaneously in each dimension. A schematic illustration of a 2 x 2 scroll grid panel:
1
2
3
4
5
6
7
8
9
10
11
12
+------------+------------+
| | |^
| | ||
| | ||
| | |v
+------------+------------+
| | |^
| | ||
| | ||
| | |V
+------------+------------+
<----------> <---------->
Fields
Scope | Visibility | Type | Name | Description |
---|---|---|---|---|
Instance | private | TScrollBar | FHorizontalScrollBar | |
Instance | private | TScrollBar | FVerticalScrollBar | |
Instance | private | TScrollPolicy | FVerticalScrollPolicy | |
Instance | private | TScrollPolicy | FHorizontalScrollPolicy | |
Instance | private | TInteger32Size | FGridSize | |
Instance | private | TInteger32Point | FMainPanel | |
Instance | private | TList<TList<TControl>> | FPanels | |
Instance | private | TBoolean | LayingOutControls | |
Instance | private | TControl | FocusedPanel |