Hi,

Seeing that I've seen some graphics pros in this list, I thought I
would ask.  In fpGUI I'm creating a new custom component theme for our
project.  For example, Edit components have a sunken 3D effect.
Anybody have some code or a link to some code that can paint gradients
to a corner of a rectangle?

See attached screenshot.  I've painted the left and top inner edges of
the Edit component with a Horizontal & Vertical gradient.  But the
Left/Top corner, I had to cheat by painting a 7x7 image I created in
The Gimp. ;-)

Anybody have some code to share on how you paint a gradient into one
corner of a rectangle.

eg:
You need a mono font to see this correctly. I specify two colors for
the gradient. 3 corners of the rectangle start with one color. The 4th
corner is the second color of the gradient.

       __________________________________
       | color1                  color1 |
       |                                |
       |                                |
       |                                |
       |                                |
       | color1                  color2 |
       |________________________________|



Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

<<attachment: Screenshot5.png>>

Reply via email to