ScrollBarShow method.
Source position: grids.pas line 1155
protected procedure TCustomGrid.ScrollBarShow( |
Which: Integer; |
aValue: Boolean |
); |
Which |
|
Scrollbar(s) affected in the method. |
aValue |
|
True indicates the scrollbar(s) are visible. |
ScrollBarShow is a procedure used to control the visibility of scrollbars in the grid.
Which is an Integer argument that specifies the scrollbar(s) affected in the method, and can include the following constant values:
aValue is a Boolean argument that indicates if the specified scrollbar(s) are visible or hidden. When aValue contains True, the corresponding scrollbar(s) are displayed. Otherwise, they are hidden.
No actions are performed in the method if a handle has not been allocated for the grid (HandleAllocated returns False). ScrollBarShow ensures that gfUpdatingScrollbar is included in the grid flags prior to calling the ShowScrollBar routine in the LCL interface. The flag value is removed immediately after updating the scrollbar display. Internal members used to track scrollbar visibility are set to the state requested in AValue.
|
Set type used to store TGridFlagsOption enumeration values. |
|
|
Represents state flags used in a grid control. |
|
|
Checks whether a handle for the widget has been allocated for the control. |
|
|
Shows or hides a Scroll Bar. |