Updated: Dec 16, 2023
Follow on twitter

How to draw a gradient on a panel.

The TsGradientPanel component contained in the AlphaControls package and draws gradient automatically. The PaintData property allows to define required colors and options for painting. The CustomGradient subproperty calls a special design-time editor for visual creation of the gradient data.

Also gradient may be drawn manually on the TsPanel component, using the OnPaint event and PaintGrad procedure, which declared in the sGradient unit.






Installing, using and licensing the demo programs © Sergii Goncharov, Ukraine, Odessa 2004-2023