Sybase 2 Barcode Reader User Manual


 
Supplying property values
312 DataWindow .NET
The status column must be retrieved
The status column must be included in the data source even though it does not
appear in the DataWindow object itself.
The Design view includes the text control at the right-hand end of the detail
line. The text control is visible at runtime only if the value of the status column
for the row is L.
In the resulting DataWindow object, the text control is visible only for the two
employees on leave. For a picture, see “Font.Strikethrough” on page 305.
Width
Description
The width of the control.
In the painter
Width on the Position page in the Properties view.
Value
An integer in the unit of measure specified for the DataWindow object. Units
of measure include PowerBuilder units, thousandths of an inch (1000 = 1 inch),
thousandths of a centimeter (1000 = 1 centimeter), or pixels.
Example
The following statement causes the width of a rectangle to be 500
PowerBuilder units if the state column for the row has the value NY.
Otherwise, the rectangle is 1000 PowerBuilder units wide:
if (state = 'NY', 500, 1000)
For more details and pictures, see “Example 4: changing the size and location
of controls” on page 294.
X
Description
The distance of the control from the left edge of the DataWindow object. At
runtime, the distance from the left edge of the DataWindow object is calculated
by adding the margin to the x value.
In the painter
X on the Position page in the Properties view.
Value
An integer in the unit of measure specified for the DataWindow object. Units
of measure include PowerBuilder units, thousandths of an inch (1000 = 1 inch),
thousandths of a centimeter (1000 = 1 centimeter), or pixels.