[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Calculates the bounds for a focus rectangle in the grid control.
Source position: grids.pas line 964
protected procedure TCustomGrid.CalcFocusRect( |
var ARect: TRect; |
adjust: Boolean = True |
); |
When row selection is enabled in the grid Options, the Left and Right values in ARect are updated to use cached grid information in GCache. Calls FlipRect to account for Right-to-Left alignment when needed.
Adjust indicates whether values in ARect are adjusted for horizontal or vertical grid lines drawn in the control. No additional actions are performed when Adjust is set to False. The default value for the parameter is True.
When goHorzLine is included in Options, the Bottom value in ARect is decremented to accommodate the horizontal grid line.
When goVertLine is included in Options, the Left or Right value in ARect is adjusted to accommodate the vertical grid line. Left is incremented when UseRightToLeftAlignment is set to True. Right is decremented when UseRightToLeftAlignment is set to False.
CalcFocusRect is called from the DrawRow and DrawFocusRect methods.
|
Contains the set of optional features and/or behaviors enabled for the grid. |
|
|
Draws the columns for the specified row in the grid control. |
|
|
Draws the focus rectangle for the specified cell. |
|
|
Contains cached data about the visual layout and state for the grid control. |
|
|
Flips coordinates in the cell rectangle when BiDi mode or RTL alignment is used. |
|
|
Represents state flags used in a grid control. |
|
|
True when BiDiMode is bdRightToLeft. |
lazarus-ccr.sourceforge.net |