ADDOBJECT "GradientButton", name[, xpos[, ypos
[, width[, height]]]]
Description
Gradient buttons give apps a modern look and feel. The background color of the button transitions smoothly from one color to another, either vertically or horizontally. It is also useful as a background image. Name, is the name of a variable that is added to the program to reference the object, it must follow standard variable naming conventions. The optional components, xpos, ypos, width, and height are numeric expressions that set the location and size of the object in pixels, measured from the upper left corner. Gradient Buttons can only be created using the Device IDE. They cannot be created at runtime.
Properties Supported (see "Properties")
Alignment, BorderStyle,Caption,FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontUnderline, Height, Left, Name, Top, Width
Events Supported (see "Events")
Click
GradientButton Properties
|
Name |
Description |
|
CaptionColor |
The color of the text of the button |
|
GradientColor1 |
The top or left color. |
|
GradientColor2 |
The bottom or right color |
|
GradientStyle |
Top to Bottom or Left to Right |
Example
Output

Related Items
COMMANDBUTTON, PICTUREBOX