Sybase 2 Barcode Reader User Manual


 
CHAPTER 10 Highlighting Information in DataWindow Objects
DataWindow Designer User’s Guide 295
To change properties of the rectangle and the line for rows with the
state
column equal to New York:
1 Select the rectangle, display the Position page in the Properties view, and
specify expressions for the following properties:
2 Select the line, display the Position page in the Properties view, and
specify expressions for the following properties:
3 On the General page for the line, specify this expression for Pen Width:
if (state = 'NY', 10, 4)
At runtime, the rectangle is taller and narrower, and the line is shorter and
has a wider pen width.
Supplying property values
Each property has its own set of property values that you can use to specify the
true and false conditions in the
If expression. Usually you specify a number to
indicate what you want. For example, if you are working with the Border
property, you use the number 0, 1, 2, 3, 4, 5, or 6 to specify a border.
Table 10-1 summarizes the properties available. A detailed description of each
property follows the table. For a complete list of properties for each control,
see the online Help.
Property Expression
X
if (state = 'NY', 2890, 1865)
Width if (state = 'NY', 500, 1000)
Height if (state = 'NY', 160, 120)
Property Expression
X1
if (state = 'NY', 2890, 1865)
Y1 if (state = 'NY', 168, 132)
X2 if (state = 'NY', 3400, 2865)
Y2 if (state = 'NY', 168, 132)