VSFlexGrid Control > VSFlexGrid Properties, Events, and Methods > VSFlexGrid Properties > FocusRect Property |
Returns or sets the type of focus rectangle to be displayed around the current cell.
[form!]VSFlexGrid.FocusRect[ = FocusRectSettings ]
The settings for the FocusRect property are described below:
Constant |
Value |
Description |
flexFocusNone |
0 |
Do not show a focus rectangle. |
flexFocusLight |
1 |
Show a one-pixel wide focus rectangle. |
flexFocusHeavy |
2 |
Show a two-pixel wide focus rectangle. |
flexFocusSolid |
3 |
Show focus rectangle as a flat frame (the color is determined by the BackColorSel property). |
flexFocusRaised |
4 |
Show focus rectangle as a raised frame. |
flexFocusInset |
5 |
Show focus rectangle as an inset frame. |
If a focus rectangle is drawn, then the current cell is painted using the regular background color, as in most spreadsheets and grids. Otherwise, the current cell is painted using the selected background color (BackColorSel).
FocusRectSettings (Enumeration)
flexFocusLight (1)