Applies to
Windows
Description
Sets and retrieves the gradient style of the background color of a window.
Usage
gradient = Get_Property (objectname,"GRADIENTSTYLE")
currentStyle = Set_Property (objectname,"GRADIENTSTYLE", gValue)
Remarks
Values passed in Set_Property():
Value | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
gValue | An integer value denoting one of the following gradient styles:
|
Note: The background color must be set and the Background Color checkbox in the Window's Property Dialog must be checked.
Returns
Values returned by Get_Property and Set_Property
Value | Description |
---|---|
gradient | The current value of the window's gradient style. |
existingGradient | The window's gradient style prior to the setting of the style. |
See Also
BACKCOLOR property, FORECOLOR property, CHOOSECOLOR Utility() service
Example
Declare function Set_Property $Insert Colors equ Vertical$ to 1 vBackColor = Red$ : @fm : Black$ : @fm : 0 prevBack = Set_Property(@window, "BACKCOLOR", vBackColor) prevGrad = Set_Property(@window, "GRADIENTSTYLE", Vertical$)