FocusRectangle

Description

Whether a rectangle displays around the selected control.

Applies to

Column, Computed Field, Graph, OLE Object, OLE Database Blob, Picture, and Text controls

Syntax

PowerBuilder dot notation:

dw_control.Object.controlname.FocusRectangle

Describe and Modify argument:

controlname.FocusRectangle = value

Parameter

Description

controlname

The name of the control for which you want to show or hide the focus rectangle

value

Whether the focus rectangle appears when the control has focus. Values are:

  • Yes – The focus rectangle displays

  • No – The focus rectangle does not display

Usage


In the painter

Select the control and set the value in the Properties view, Edit tab, Show Focus Rectangle option.

Examples

Example 1

String ls_DataObject

string ls_focus, ls_focus1


ls_DataObject= dw_1.DataObject

If ls_DataObject = "d_dept" Then

	dw_1.Modify("t_1.focusrectangle = " + "yes")

	ls_focus = dw_1.describe("t_1.focusrectangle")

	ls_focus1 = dw_1.object.t_1.focusrectangle

Else

	dw_1.Modify("gr_1.focusrectangle = " + "yes")

	ls_focus = dw_1.describe("gr_1.focusrectangle")

	ls_focus1 = dw_1.object.gr_1.focusrectangle

End If


messagebox(ls_focus, ls_focus1)