Specifications

CHAPTER 10 Highlighting Information in Reports and Forms
Users Guide 343
Y1, Y2
Description
The distance of each end of the specified line from the top of the band in which
the line is located.
In the painter
Y1, Y2 on the Position page in the Properties view.
Value
Integers in the unit of measure specified for the report. 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 statements for the Y1 and Y2 properties of a line cause the line
to be located .400 inches (Y1 and Y2 equal .400 inches) from the top of the
detail band, if the state column for the row has the value NY. Otherwise, the
line is located .250 inches (Y1 and Y2 equal .250 inches) from the top of the
detail band:
If(state = 'NY', 400, 250)
If(state = 'NY', 400, 250)
For more details and pictures, see “Example 4: changing the size and location
of controls” on page 324.
Specifying colors
You specify a color by specifying a number that represents the color. You can
specify the number explicitly or by using an expression that includes the
RGB
(r, g, b) function.
For the numbers and expressions that specify common colors, see Table 10-2
on page 344.
How the number is
calculated
The formula for combining color values into a number is:
red + 256*green + 256*256*blue
where the amount of each primary color (red, green, and blue) is specified as a
value from 0 to 255.
The
RGB function calculates the number from the amounts of red, green, and
blue specified.