[Lazarus] Background colours etc.

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Fri Mar 2 22:46:04 CET 2012

There are 2 options:

1-> The default form color is very well defined, just use
ColorToRGB(clForm) to get it


2-> You can also set a region for your TImage which matches the star
shape, which will make the control non-rectangular. Use
TWinControl.SetShape(Region). Use LCLIntf functions to create the
region. setShape does not work before the form has been shown (so
OnShow event) in LCL-Gtk2, because as always Gtk2 has issues. To make
a star try something like CreatePolygonalRgn (or similar name)

Felipe Monteiro de Carvalho

More information about the Lazarus mailing list