Gradient background color for objects and controls

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:

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