From 218438a9bc7e4f3defffeb6370a457f6fb935325 Mon Sep 17 00:00:00 2001
From: dsiders
MoveExtend is called to move the selection to the cell at the coordinates in
Row and Col. The cell editor is also retrieved (when available) and is
-displayed.
-
-MoveExtend is called to move the selection to the cell at the coordinates in
-Row and Col. The cell editor is also retrieved (when available) and is
-displayed.
+displayed. The Click method is called to signal the OnClick event handler
+(when assigned) if the cell is not already selected or displaying a cell
+editor.
+ColSizingCursor is a TCursor property with the cursor
+displayed when the horizontal size for a column is changed. The default value
+for the property is defined in the crHSplit constant.
+
+It is displayed when a mouse down event causes the grid cursor state to be
+changed to the value gcsColWidthChanging.
+
+Use RowSizingCursor to specify the cursor shape displayed when a row height
+is changed.
+
FastEditing is a Boolean property which indicates if
-cell editing initialized by a KeyDown message instead of a navigation key is
-used in the grid control. The value in FastEditing is used when a
+cell editing initialized by a KeyDown message instead of by a navigation key
+is used in the grid control. The value in FastEditing is used when a
TPickListCellEditor handles KeyDown messages.
@@ -16899,24 +16922,34 @@ control.
Options is a TGridOptions property used to store the
options enabled for the grid control. Values from the TGridOptions
-enumeration are included in the set type to enable the features or behaviors.
+enumeration are included in the set type to enable specific features or
+behaviors.
-For the complete list of available options and their usage, see .
+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. The default value for the Options
+property is defined in the DefaultGridOptions set constant.
-The default value for the Options is the DefaultGridOptions set.
+Values present in the set cause the corresponding features or behaviors to be
+enabled in the control at run-time. For the complete list of available
+options and their usage, see .
-Use Options2 to set scrolling behaviors enabled for the grid
-control.
+Use Options2 to set scrolling or cell editor behaviors enabled for
+the grid control.
+
+Use MouseWheelOption to control mouse wheel behavior in the grid control.
Row is an Integer property which contains the row index
@@ -17045,15 +17080,24 @@ zero-based, and cannot exceed the value RowCount-1.
Setting a new value for the property causes the values in Col and Row to be
validated against the ColCount and RowCount for the grid. Error checking is
used, and an exception may be raised if the new property value is not in the
-limits for the control. The selected cell in the control is changed to the
-new values in the Col and Row properties.
+limits for the control. The selected cell in the control is changed to (or
+extended to) the new values in the Col and Row properties. The Click method
+is called to signal the OnClick event handler (when assigned) if the cell is
+not already selected or displaying a cell editor.
Use Col to determine the column number for the currently selected cell in the
grid control.
+RowSizingCursor is a TCursor property with the cursor
+displayed when the vertical size for a row is changed. The default value for
+the property is defined in the crVSplit constant.
+
+It is displayed when a mouse down event causes the grid cursor state to be
+changed to the value gcsRowHeightChanging.
+
+Use ColSizingCursor to specify the cursor shape displayed when a column width
+is resized.
+
@@ -17836,8 +17898,26 @@ is updated.
Event handler signalled to get the user-defined bitmap used for a check box
cell.
-
+OnUserCheckboxBitmap is a TUserCheckboxBitmapEvent
+property with the event handler used to get the user-specified bitmap drawn
+for check box cell on the control. It is signalled from the
+GetImageForCheckBox method (when assigned) with the control, column, row, and
+check box state for the cell. Use the Bitmap argument to return the bitmap
+image provided in the event handler routine.
+
+Use the OnUserCheckboxImage to retrieve an image list and index position with
+the graphical representation for a specific check box state.
+
+OnUserCheckboxImage is a TUserCheckBoxImageEvent +property with the event handler signalled to get a user-specified image list +and index position for a check box cell with a give state. It is signalled +from the GetImageForCheckBox method (when assigned) with the control, column, +row, and check box state for the cell. Use the ImageList and ImageIndex +arguments to return the image and position provided in the event handler +routine. +
++Use the OnUserCheckboxBitmap event handler to get the check box image as a +TBitmap type. +
-OnValidateEntry is a TValidateEntryEvent which -implements the event handler signalled to perform validation for cells in the -ValidateEntry method. +OnValidateEntry is a TValidateEntryEvent property with +the event handler signalled to perform validation for cells in the +ValidateEntry method. The OldValue argument contains the value +validated in the handler routine. Use the NewValue argument to return a +modified value from the handler routine. +
++The handler can raise an Exception if needed. It is caught in the calling +routine (ValidateEntry), and forwarded to the HandleException method in the +Application singleton. +
++Updated cell values are not validated if the event handler has not been +assigned.
+The APath argument contains the XPath-like notation, including the +column identifier, used to access the column definition. For example: +
+
+'grid/design/columns/column1'
+
++EndUpdate is a method used to complete an update started by +calling the BeginUpdate method. +
++EndUpdate decrements the internal update counter used in the control. When +the counter reaches 0, there are no other updates active for the control. If +ARefresh is set to True, the VisualChange method is called to update the +cached sizes for the control and Invalidate the control display area. +
++BeginUpdate and EndUpdate are used to implement methods like: +
++InvalidateCol is a method used to refresh all cells in the column +number specified in the ACol argument. InvalidateCol gets a TRect instance +with the bounds for cells in the specified column number. It calls the +InvalidateRect routine in the LCL interface using the Handle for the control +and the display rectangle as arguments. +
++No actions are performed in the method if a Handle has not been allocated in +the widgetset class instance for the control. +
++MouseCoord is TGridCoord function used to get the +coordinates for the mouse pointer as cell coordinates. It calls the +MouseToCell method to get the TGridCoord (an alias to TPoint) instance used +in the return value. +
++MouseToCell is an overloaded method in TCustomGrid used +to convert screen coordinates for the mouse pointer to cell coordinates. One +variant returns the cell coordinates as a TGridCoord (an alias for TPoint) +instance. The other variant returns the cell coordinates as Integer output +parameters. MouseToCell calls the OffsetToColRow method to get the cell +coordinates. +
++MouseToGridZone is a TGridZone function used to get the +grid zone where the specified mouse pointer coordinates are located. The +X and Y arguments contain the screen coordinates where +the mouse pointer is located. +
++The return value is a TGridZone enumeration value determine by +comparing the screen coordinates to the cached sizes and offsets for the grid +control. The screen coordinates are converted to cell coordinates when +available, and used to the determine the return value. +
++SelectedRangeCount is a read-only Integer property with +the number of selected cell rectangles currently selected in the cells for +the control. The property value contains the length of the internal +TGridRectArray maintained in the control + 1 (for the current selected cell +not already in the array). +
++Use SelectedRange to access the selection rectangles by the ordinal position +in the the internal TGridRectArray instance. +
++Use AddSelectedRange to add a selection rectangle when RangeSelectMode is set +to rsMulti. +
++Use ClearSelections to remove all selection rectangles and redraw the grid +control. +
+