TScrollPanel

A m x n grid of controls, each of which is decorated with a TViewPort.

Inheritance

LevelAncestorDescription
1TObjectUltimate ancestor in a class hierarchy
2TBaseObjectA base class for objects that can be used instead of TObject.
3TControlVisual user interface element that can react to user input.
4TPanelBase class for a TControl that contains other controls.
5TScrollPanel

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

ScopeVisibilityTypeNameDescription
InstanceprivateTScrollBarFHorizontalScrollBar
InstanceprivateTScrollBarFVerticalScrollBar
InstanceprivateTScrollPolicyFVerticalScrollPolicy
InstanceprivateTScrollPolicyFHorizontalScrollPolicy
InstanceprivateTInteger32SizeFGridSize
InstanceprivateTInteger32PointFMainPanel
InstanceprivateTList<TList<TControl>>FPanels
InstanceprivateTBooleanLayingOutControls
InstanceprivateTControlFocusedPanel

Methods

ScopeVisibilityResultNameDescription
InstanceprivateSetVerticalScrollPolicy(Value: TScrollPolicy)
InstanceprivateSetHorizontalScrollPolicy(Value: TScrollPolicy)
InstanceprivateSetMainPanel(Value: TInteger32Point)
InstanceprivateSetGridSize(Size: TInteger32Size)
InstanceprivateTControlGetPanel(Position: TInteger32Point)
InstanceprivateSetPanel(Location: TInteger32Point; Control: TControl)
InstanceprivateValidateFocusedControl()
InstanceprivateTScrollBarsVisibilityDetermineVisibleScrollBarsForSize(AvailableSize: TInteger32Size)
InstanceprivateUpdateStyleFromMainPanel()
InstanceprotectedReallocatePanels()
InstanceprotectedTTextGetCaption()
InstanceprotectedTBooleanGetCaptionVisible()
InstanceprotectedSetCaptionVisible(Value: TBoolean)
InstanceprotectedChildRethinksScrollBars(Child: TControl)
InstanceprotectedDescendantFiresEvent(Descendant: TControl; Event: TEvent)
InstanceprotectedTControlMainControl()
InstanceprotectedTViewportViewPort()
InstanceprotectedTBooleanControlCanBeEntered(Control: TControl)
InstanceprotectedTControlControlAbove(Location: TInteger32Point)
InstanceprotectedTControlControlBelow(Location: TInteger32Point)
InstanceprotectedTControlControlAtLeft(Location: TInteger32Point)
InstanceprotectedTControlControlAtRight(Location: TInteger32Point)
InstanceprotectedTBooleanNavigate(Direction: TNavigationDirection; KeyModifiers: TKeyModifiers)
InstanceprotectedTInteger32PointGetFocusedPanelLocation()
InstanceprotectedDescendantRequestsFocusInComposition(Descendant: TControl)
InstanceprotectedTInteger32GetPreferredColumnWidth(Column: TInteger32)
InstanceprotectedTInteger32GetPreferredRowHeight(Row: TInteger32)
InstanceprotectedTInteger32SizeGetFixedSize()
InstanceprotectedTInteger32SizeGetAvailableSize()
InstanceprotectedDetermineVisibleScrollBars()
InstanceprotectedRepositionScrollBars()
InstanceprotectedSetViewPortSize(Size: TInteger32Size)
InstanceprotectedAdjustScrollModel(Model: TScrollModel; AvailableSize: TInteger32; ScrollSize: TInteger32)
InstanceprotectedUpdateViewPorts(ScrollModel: TScrollModel)
InstanceprotectedTBooleanGetVerticalScrollBarIsVisible()
InstanceprotectedSetVerticalScrollBarIsVisible(Value: TBoolean)
InstanceprotectedTBooleanGetHorizontalScrollBarIsVisible()
InstanceprotectedSetHorizontalScrollBarIsVisible(Value: TBoolean)
InstanceprotectedSetScrollBarIsVisible(ScrollBar: TScrollBar; Value: TBoolean)
InstanceprotectedTBooleanNeedsVerticalScrollBar(AvailableSize: TInteger32Size)
InstanceprotectedTBooleanNeedsHorizontalScrollBar(AvailableSize: TInteger32Size)
InstanceprotectedSetHorizontalViewPortOffsets()
InstanceprotectedSetVerticalViewPortOffsets()
InstanceprotectedHandleViewPortMoved(ViewPort: TViewport)
InstanceprotectedTInteger32PointGetViewPortPanel(ViewPort: TViewport)
InstancepublicCreate()
InstancepublicDestroy()
InstancepublicLayoutControls()
InstancepublicSizeChanged()
InstancepublicTBooleanHandleEvent(Event: TEvent)
InstancepublicTControlDefaultControlToFocus()
InstancepublicTBooleanCompositeControlHasFocus()
InstancepublicTBooleanChildHasCompositionFocus(ChildControl: TControl)
InstancepublicTControlChildWithCompositionFocus()
InstancepublicTBooleanIsComposition()
InstancepublicTInteger32SizeGetPreferredSize(AvailableSize: TInteger32Size)
InstancepublicTControlNextInKeyboardInputChain()