FocusRect Property

Returns or sets the type of focus rectangle to be displayed around the current cell.

Syntax

[form!]VSFlexGrid.FocusRect[ = FocusRectSettings ]

Remarks

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).

Data Type

FocusRectSettings (Enumeration)

Default Value

flexFocusLight (1)

See Also

VSFlexGrid Control