setDialogGradient

Syntax

setDialogGradient(int color1, int color2, int direction)

Arguments

color1
The color the background dialog color gradient starts at.
color2
The color the background color gradient fades to.
direction
The direction the gradient fades in: 0 for vertical gradient, 1 for horizontal

Description

Changes the background window color to a color gradient between the first & second color, in either vertical or horizontal manner.

Example

// Set the background window from bright blue to black
setDialogGradient( RGB(0,0,255), RGB(0,0,0), 0);

See Also

setDialogImage, setDialogColor

Comments

Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.