FocusRectangle

Applies to

Graph, Picture, PictureHyperLink, OLE, OLE Custom Control, StaticText, and StaticHyperLink controls

Description

When the FocusRectangle property is enabled, a dotted rectangle (the focus rectangle) displays when the control has focus. If this property is not enabled, the focus rectangle does not appear.

Usage

In a painter

To set the FocusRectangle property:

  • Select the Focus Rectangle check box on the General page of the control's Properties view.

In scripts

The FocusRectangle property takes a boolean value. The following example specifies that a focus rectangle will appear when the StaticText control has focus:

st_1.FocusRectangle = TRUE