[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Displays or hides scroll bar(s) for the grid control.
Source position: grids.pas line 1180
protected procedure TCustomGrid.ScrollBarShow( |
Which: Integer; |
aValue: Boolean |
); |
Which |
|
Scrollbar(s) affected in the method. |
aValue |
|
True indicates the scroll bar(s) are visible. |
ScrollBarShow is a procedure used to control the visibility of the scroll bars for the grid.
Which is an Integer argument that specifies the scroll bar(s) affected in the method, and can include the following constant values:
aValue is a Boolean argument that indicates if the specified scroll bar(s) are visible or hidden. When aValue contains True, the corresponding scroll bar(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 scroll bar display. Internal members used to track scroll bar visibility are set to the state requested in AValue.
ScrollBarShow is called from the UpdateHorzScrollBar and UpdateVertScrollbar methods, as well as the private UpdateSBVisibility method.
|
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. |
Version 4.0 | Generated 2025-05-03 | Home |