Unit 'Grids' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TCustomGrid.ScrollBarShow

ScrollBarShow method.

Declaration

Source position: grids.pas line 1155

protected procedure TCustomGrid.ScrollBarShow(

  Which: Integer;

  aValue: Boolean

);

Arguments

Which

  

Scrollbar(s) affected in the method.

aValue

  

True indicates the scrollbar(s) are visible.

Description

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:

SB_HORZ
Horizontal scrollbar
SB_VERT
Vertical scrollbar
SB_BOTH
Both horizontal and vertical scrollbars

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.

See also

TGridFlags

  

Set type used to store TGridFlagsOption enumeration values.

TGridFlagsOption

  

Represents state flags used in a grid control.

TWinControl.HandleAllocated

  

Checks whether a handle for the widget has been allocated for the control.

ShowScrollBar

  

Shows or hides a Scroll Bar.