Settings for the color and transparency of a control.
Button, Column, Computed Field, GroupBox, Line, Oval, Rectangle, RoundRectangle, and Text controls
PocketBuilder dot notation:
dw_control.Object.controlname.Background.property
Describe and Modify argument:
"controlname.Background.property { = ' value ' }"
SyntaxFromSQL:
Column ( Background.property = value )
Text ( Background.property = value )
Parameter |
Description |
---|---|
controlname |
The control whose Background properties you want to get or set. When generating DataWindow syntax with SyntaxFromSQL, the Background settings apply to all columns or all text controls. |
property |
A property that applies to the background of a control, as listed in the Property table below. |
value |
Values for the properties are shown below. Value can be a quoted DataWindow expression. |
Property for Background |
Value |
---|---|
Color |
(exp) A long expression specifying the color (the red, green, and blue values) to be used as the control’s background color. |
Mode |
(exp) A number expression specifying the mode of the background of controlname. Values are:
|
Select the control and set the value in the Properties view Font tab for controls that have text and in the General tab for drawing controls (choose Transparent or a color)
When you choose a Brush Hatch fill pattern other than Solid for an Oval, Rectangle, or RoundRectangle control, the Background Color and the Brush Color are used for the pattern colors.
Background color of a line
The background color of a line is the color that displays
between the segments of the line when the pen style is not solid.
Transparent background If Background.Mode is transparent (1), Background.Color is ignored.
DropDownDataWindows and GetChild When you set Background.Color and Background.Mode for a column with a DropDownDataWindow, references to the DropDownDataWindow become invalid. Call GetChild again after changing these properties to obtain a valid reference.
dw_1.Object.oval_1.Background.Color = RGB(255, 0, 128)
ls_data = dw_1.Describe("oval_1.Background.Color")
dw_1.Modify("emp_name.Background.Color='11665407'")
ls_data = dw_1.Describe("emp_name.Background.Mode")
dw_1.Modify("emp_name.Background.Mode='1'")
dw_1.Modify("rndrect_1.Background.Mode='0'")
SQLCA.SyntaxFromSQL(sql_syntax, &
"Style(...) Column(Background.Mode=1 ...) ...", &
ls_Errors)
SQLCA.SyntaxFromSQL(sql_syntax, &
"Style(...) Column(Background.Color=11665407 ...)", &
ls_Errors)
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |