Sign in Join
FPDoc Onlineexperiment

TCustomDrawGrid.Options2 property

Member of TCustomDrawGridpublicIn unit Grids

Contains additional options for scrolling and editor behavior enabled in the grid control.

Declaration

pascal
property Options2:;

Description

Options2 is a TGridOptions2 property which contains options which control scrolling or cell editors in the grid control. It is a set type which contains zero (0) or more values from the TGridOption2 enumeration.

See TGridOption2 for the values allowed in the set type. The default value for the property is defined in the DefaultGridOptions2 constant (it is an empty set).

The set values can be included or excluded at design-time using the object inspector in the Lazarus IDE. They can also be included or excluded in the set at run-time using program code.

Values present in the set cause the corresponding behaviors to be enabled in the control at run-time. For example:

goScrollToLastCol
Allows columns to be scrolled until the last column is the LeftCol for the grid control.
goScrollToLastRow
Allows rows to be scrolled until the last row is the TopRow for the grid control.
goEditorParentColor
Sets the color in a cell editor to the color in the parent control (the TCustomGrid instance). Changing the set member does not affect an existing cell editor already visible on the control. The change is applied when the next cell editor is created and displayed.
goEditorParentFont
Sets the font in a cell editor to the font in the parent control (the TCustomGrid instance). Changing the set member does not affect an existing cell editor already visible on the control. The change is applied when the next cell editor is created, configured, and/or displayed.
goFixedColClick
Causes the Click method (and an assigned OnClick event handler) to be executed when a fixed column cell is clicked on the control.
goFixedRowClick
Causes the Click method (and an assigned OnClick event handler) to be executed when a fixed row cell is clicked on the control.

Use Options to control the primary features and behaviors in the grid control.

Use MouseWheelOption to control the mouse wheel behavior in the control.

This description is the one of Grids.TCustomGrid.Options2.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.