Sign in Join
FPDoc Onlineexperiment

TColumnButtonStyle enumeration

In unit Grids

Enumeration with cell editor types available in a grid control.

Declaration

pascal
TColumnButtonStyle = (cbsAuto,cbsEllipsis,cbsNone,cbsPickList,
 cbsCheckboxColumn,cbsButton,cbsButtonColumn)

Description

TColumnButtonStyle is an enumerated type with values that represent the different cell editor types available in a grid control. TColumnButtonStyle is the type used for the TGridColumn.ButtonStyle property, and passed as an argument when an editor is requested for a column definition. It is also used when the TCustomGrid.GetDefaultEditor method is called to get the default cell editor for a given column.

See also

Values

cbsAutoButton style is automatically determined by the grid control. Results in a TStringCellEditor being used for the cell.
cbsEllipsisButton style with an Ellipsis ( ...) is displayed as the cell editor. Results in a TCompositeCellEditor being used for the cell.
cbsNoneIndicates no editor is required for a cell.
cbsPickListIndicates a Pick List is used in the grid column. Results in a TPickListCellEditor being used for the cell.
cbsCheckboxColumnIndicates a check box is displayed as the editor for the grid column.
cbsButtonIndicates a cell editor with a Button is used in the grid column. Causes a TButtonCellEditor to be created.
cbsButtonColumnIndicates a button, centered in the cell, is used in the grid column.

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