[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'Grids' (#lcl)

TDrawGrid

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TDrawGrid - a drawn grid. May contain images in its cells

Declaration

Source position: grids.pas line 1370

type TDrawGrid = class(TCustomDrawGrid)

published

  property Align;

  

Specifies the placement of the control inside its Parent.

  property AlternateColor;

  

The colour to be used for the background on alternate rows of the grid. Having alternate rows in different colours can make the grid easier to read.

  property Anchors;

  

The set of anchor definitions for this control.

  property AutoAdvance;

  

Automatically advance down the grid on successive mouse clicks or presses of the ENTER or TAB key

  property AutoEdit;

  

Whether the Edit mode is automatically entered when a cell is selected

  property AutoFillColumns;

  

Automatically resize columns so they fill all grid's visible area

  property BorderSpacing;

  

Determines the inner and outer border spacing for this control.

  property BorderStyle;

  

Allows to show a border (line) around the control,

  property Color;

  

The background color of the control.

  property ColCount;

  

Number of columns of the grid.

  property ColumnClickSorts;

  property Columns;

  

The properties of the columns in this grid

  property DefaultColWidth;

  

Default value for the width of newly created grid columns.

  property DefaultDrawing;

  

Is the default drawing method to be used for this grid? Default is TRUE

  property DefaultRowHeight;

  

Default value for the height of newly created grid rows.

  property DragCursor;

  

The cursor shape shown while the control is dragged.

  property DragKind;

  

The operation when the control is dragged - Drag or Dock.

  property DragMode;

  

Allows the user to drag the control.

  property Enabled;

  

Determines whether the control reacts on mouse or keyboard input.

  property ExtendedSelect;

  

ExtendedSelect - the ability to select cells beyond the boundary of the visible part of the grid

  property FixedColor;

  

The color for the fixed cells of the grid.

  property FixedCols;

  

Number of the fixed columns of the grid (ie the columns containing title or identifier material, that don't get scrolled when the rest of the grid moves).

  property FixedRows;

  

Number of the fixed rows of the grid (ie the rows containing title or identifier material, that don't get scrolled when the rest of the grid moves).

  property Flat;

  

Is the cell to be displayed Flat, ie with no texturing or raised/lowered effect

  property Font;

  

The font to be used for text display in this control.

  property GridLineWidth;

  

Width (thickness) of GridLines

  property HeaderHotZones;

  

HeaderHotZones - the header zones corresponding to the position of the mouse cursor

  property HeaderPushZones;

  

HeaderPushZones - the zones of the header that have been pushed down (selected)

  property MouseWheelOption;

  property Options;

  

The options available for use in this grid

  property ParentColor;

  

If true, the Color of the control will be the same as the one from the Parent. Default is true.

  property ParentFont;

  

If true, the Font of the control will be the same as the one from the Parent. Default is true.

  property ParentShowHint;

  

If true, the value of ShowHint for the control will be the same as the one from the Parent. Default is true.

  property PopupMenu;

  

A context-sensitive menu that pops up when the right mouse button is clicked over this control

  property RowCount;

  

Number of rows in the grid

  property ScrollBars;

  

The ScrollBars to be used with this grid

  property ShowHint;

  

Enables the Hint display.

  property TabOrder;

  

Determines the sequence of controls, reachable when the user presses the Tab key.

  property TabStop;

  

Allows the user to navigate to this control, by pressing the Tab key.

  property TitleFont;

  

The font to be used in the grid's title

  property TitleImageList;

  

TitleImageList - the list of images to be used with the titles

  property TitleStyle;

  

The style to be used for the grid's title

  property UseXORFeatures;

  

UseXORFeatures: When True, the dotted focus rectangle is painted using the XOR raster operation

  property Visible;

  

Allows to show or hide the control, and all of its children.

  property VisibleColCount;

  

The number of visible columns

  property VisibleRowCount;

  

The number of visible rows

  property OnBeforeSelection;

  

OnBeforeSelection - event handler for use before a selection is made

  property OnCheckboxToggled;

  property OnClick;

  

Notification handler for mouse clicks.

  property OnColRowDeleted;

  

Event handler when a grid column or row is deleted

  property OnColRowExchanged;

  

Event handler when a grid column or row has its position exchanged with another

  property OnColRowInserted;

  

Event handler when a column or row is inserted into the grid

  property OnColRowMoved;

  

Event handler when a grid column or row is moved

  property OnCompareCells;

  

Event handler for comparing the contents of cells

  property OnContextPopup;

  

Invoked when a context-sensitive pop-up menu is requested.

  property OnDblClick;

  

Event Handler for double mouse clicks.

  property OnDragDrop;

  

This handler determines the action on an drop onto this control, in a drag-drop operation.

  property OnDragOver;

  

Event handler for a control being dragged over this control.

  property OnDrawCell;

  

Event handler for drawing a cell

  property OnEditButtonClick;

  

Event handler for when the Edit button is clicked

  property OnButtonClick;

  property OnEditingDone;

  

Event handler when editing is done.

  property OnEndDock;

  

Notification handler for the end of a docking operation.

  property OnEndDrag;

  

Notification handler for the end of a dragging operation.

  property OnEnter;

  

Handler for control receiving the focus.

  property OnExit;

  

Handler for control loosing the focus. This is a good place for checking the finished user input.

  property OnGetEditMask;

  

Event handler for finding the edit mask while editing a grid cell

  property OnGetEditText;

  

Event handler for finding the text to be edited in a grid cell

  property OnHeaderClick;

  

Event handler when a column or row header is clicked

  property OnHeaderSized;

  

Event handler when a column or row header is re-sized

  property OnHeaderSizing;

  property OnKeyDown;

  

Handler for keyboard key pressed.

  property OnKeyPress;

  

Handler for a character entered by the user.

  property OnKeyUp;

  

Handler for keyboard key released.

  property OnMouseDown;

  

Event handler for mouse button going down.

  property OnMouseEnter;

  property OnMouseLeave;

  property OnMouseMove;

  

Event handler for mouse movement within the control.

  property OnMouseUp;

  

Event handler for mouse button going up.

  property OnMouseWheelDown;

  

Notification handler for downward movement of mouse wheel.

  property OnMouseWheelUp;

  

Notification handler for upward movement of mouse wheel.

  property OnPickListSelect;

  

Event handler for selecting an item from a picklist (eg drop-down list in TComboBox)

  property OnPrepareCanvas;

  

Event handler to prepare the Canvas for drawing

  property OnSelectEditor;

  

Event handler for selecting an editor

  property OnSelection;

  

Event handler for when an area of a grid (one or a group of cells) is selected

  property OnSelectCell;

  

Event handler when a grid cell is selected

  property OnSetEditText;

  

Event handler for storing the text that has been edited in a cell

  property OnStartDock;

  

Event handler for the start of a docking operation.

  property OnStartDrag;

  

Event handler for the start of a dragging operation.

  property OnTopleftChanged;

  

Event handler when the top left cell is changed (ie the grid has been scrolled so that a different cell occupies top left)

  property OnUserCheckboxBitmap;

  property OnUTF8KeyPress;

  

Handler for a character entered by the user.

end;

Inheritance

TDrawGrid

  

TDrawGrid - a drawn grid. May contain images in its cells

|

TCustomDrawGrid

  

TCustomDrawGrid - Base Class for drawn grids including TDrawGrid and TStringGrid

|

TCustomGrid

  

TCustomGrid - the base class for all grid controls

|

TCustomControl

  

The base class for windowed controls which paint themselves.

|

TWinControl

  

The base class for controls which can contain other (child) controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components associated with widgets.

|

TComponent

?

TObject

See also

HowToUseGrids

  

How to use Grids including StringGrids, DrawGrids and DbGrids