FocusRectangle DataWindow object property
Description
Whether a rectangle displays around the selected control.
Controls
Column, Computed Field, Graph, OLE Object, OLE Database Blob,
Picture, and Text controls
Syntax
PowerBuilder dot notation:
1 |
<span>dw_control</span>.Object.<span>controlname</span>.FocusRectangle |
Describe and Modify argument:
1 |
"<span>controlname</span>.FocusRectangle = <span>value</span>" |
Parameter |
Description |
---|---|
controlname |
The name of the control for which you |
value |
Whether the focus rectangle appears when
|
Usage
In the painter
Select the control and set the value in the Properties view,
Edit tab, Show Focus Rectangle option.
Examples
1 |
String ls_DataObject |
1 |
string ls_focus, ls_focus1 |
1 |
1 |
ls_DataObject= dw_1.DataObject |
1 |
If ls_DataObject = "d_dept" Then |
1 |
dw_1.Modify("t_1.focusrectangle = " + "yes") |
1 |
ls_focus = dw_1.describe("t_1.focusrectangle") |
1 |
ls_focus1 = dw_1.object.t_1.focusrectangle |
1 |
Else |
1 |
dw_1.Modify("gr_1.focusrectangle = " + "yes") |
1 |
ls_focus = dw_1.describe("gr_1.focusrectangle") |
1 |
ls_focus1 = dw_1.object.gr_1.focusrectangle |
1 |
End If |
1 |
1 |
messagebox(ls_focus, ls_focus1) |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest