PocketBuilder 2.5.1 includes a new enumerated datatype and two new properties that allow you to set color gradient backgrounds for Windows, UserObjects, and PictureButton controls.
GradientFillMode is the new enumerated datatype. This enumeration specifies the fill mode for the background gradient of an object or control that supports color gradients. The values for this enumeration are:
gfmNone! (default) - No gradient is used.
gfmLeftToRight! - Paints the gradient using the control’s background color from the left side of the screen to the color specified by the GradientEndColor property on the right side of the screen.
gfmTopToBottom! - Paints the gradient using the control’s background color from the top of the control to the color specified by the GradientEndColor property at the bottom of the control.
The new gradient properties are GradientFillMode and GradientEndColor. They are described in the following table:
Gradient property |
Datatype |
Description |
---|---|---|
GradientFillMode |
Enumerated value |
Uses the GradientFillMode enumeration to determine how to paint the background color gradient of a window, user object, or PictureButton control. |
GradientEndColor |
Long |
Sets the secondary color for a background gradient of a window, user object or PictureButton control; the primary color is set by the BackColor property of the control |