|Drawing a gradient background with custom colors|
|By: Lorenzo Dalla Vecchia Date: 07/06/1998|
This procedure will start with a rectangle of custom colour. The it will draw rectangles each time decreasing the colour values, until it reaches your second custom colour.
This sub is used to draw a gradient background as in Microsoft Setup programs, but with custom colors..
|Form: name of the form to paint
R0: amount of red for starting color
G0: amount of green for starting color
B0: amount of blue for starting color
R1: amount of red for ending color
G1: amount of green for ending color
B1: amount of blue for ending color
Type of data
The function is contained in a module. You can cut and paste it in any program of yours.
|Visual Basic Programming Zone is a website by
Lorenzo Dalla Vecchia.
Webmaster's e-mail: email@example.com
Hosted by InWind: www.inwind.it