Visible
property (DataWindow object)
Description
Whether the specified control in the DataWindow is visible.
Applies to
Button, Column, Computed Field, Graph, GroupBox, Line, OLE, Oval,
Picture, Rectangle, Report, RoundRectangle, TableBlob, and Text
controls
Syntax
PowerBuilder dot notation:
|
1 |
dw_control.Object.controlname.Visible |
Describe and Modify argument:
|
1 |
"controlname.Visible { = 'value ' }" |
|
Parameter |
Description |
|---|---|
|
controlname |
The name of the control for which you want to get |
|
value |
(exp) Whether the specified control is Values are: 0 — False; the 1 — True; the control is Value can be a quoted DataWindow |
Usage
In the painter
Select the control and set the value in the Properties view,
General tab. The Visible property is not supported for column controls
in DataWindow objects with the Label presentation style.
Examples
|
1 2 3 4 5 6 7 |
string setting setting = dw1.Object.emp_status.Visible dw1.Object.emp_status.Visible = 0 dw1.Object.emp_stat.Visible="0~tIf(emp_class=1,0,1)" setting = dw1.Describe("emp_status.Visible") dw1.Modify("emp_status.Visible=0") dw1.Modify("emp_stat.Visible='0~tIf(emp_cls=1,0,1)'") |