From 3e73ef0cbd63df6b4ead6917eb00c25ce32267dc Mon Sep 17 00:00:00 2001 From: dsiders Date: Fri, 25 Feb 2022 16:45:27 +0000 Subject: [PATCH] Docs: LCL/grids. Adds FadeUnfocusedSelection topics in TCustomGrid, TCustomDrawGrid, TDrawGrid, TStringGrid. * Depends on 67c57d84. --- docs/xml/lcl/grids.xml | 57 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/docs/xml/lcl/grids.xml b/docs/xml/lcl/grids.xml index 4c5395b938..85c118214f 100644 --- a/docs/xml/lcl/grids.xml +++ b/docs/xml/lcl/grids.xml @@ -4805,6 +4805,7 @@ + @@ -10534,6 +10535,22 @@ New value for the property. + + Sets the value for the FadeUnfocusedSelection property. + +

+ Changing the value for the property causes the control to be redrawn. +

+
+ + + + +
+ + New value for the FadeUnfocusedSelection property. + + Gets and displays the cell hint(s) for the current cell in the grid. @@ -11980,6 +11997,43 @@ + + Indicates if special color are used for selected cells when the control loses focus. + +

+ FadeUnfocusedSelection is a Boolean property which indicates if inactive caption and text colors are used to draw the selected cells in the grid when the control loses focus. It causes color values for the Brush and Font on the Canvas to be updated. +

+

+ When set to True and the control is not Focused, an sRGB color difference between the Font color and the clBtnFace color is used to select the color values applied to the Canvas. If the color distance at least 25%, clBtnFace is used for the background and clBtnText is used for the text. For a smaller color distance, clInactiveCaption is used for the background and clInactiveCaptionText is used for the text. +

+

+ When set to False, or when the control has Focus, the color in SelectedColor is used for the background in selected cells and the color assigned to Font is used for text. +

+

+ The default value for the property is False. Changing the value for the property causes the control to be redrawn. +

+

+ FadeUnfocusedSelection has no effect on cells which use a button-style editor; they are drawn using the style and color values needed for the button control. +

+

+ FadeUnfocusedSelection is used in the PrepareCanvas method to assign the Brush and Font colors used on the Canvas. +

+
+ + + + + + + + TCustomControl.Canvas + + + + + +
+ The column instance for the currently selected cell in the grid control. @@ -14268,6 +14322,7 @@ + @@ -14468,6 +14523,7 @@ + @@ -15753,6 +15809,7 @@ +