Hi,
I have a need to draw a gradient on a panel. The gradient needs to replicate the functionality from another application which means I need to implement StartColor, EndColor and Angle properties. I've seen that there are gradient functions in the sGradient unit but none of these seem to suit. I've also looked at the Jedi JclRegion.FillGradient function and whilst this does 'sort of' work it (a) doesn't allow me to specify an angle (only horizontal or vertical) and all the buttons are redrawn without the gradient when the mouseover occurs. I imagine I could override the Draw method to fix this but without the angle property I require it won't be a full solution anyway so I haven't pursued that.
Can anyone suggest how I might put the gradient I require on a TsPanel?
EDIT: I had to put square bracked to list because if you use round brackets then you end up with this smiley (:cool: in these forums!
Regards,
Hamilton