[Lazarus] Background colours etc.
Mark Morgan Lloyd
markMLl.lazarus at telemetry.co.uk
Fri Mar 2 23:46:12 CET 2012
Felipe Monteiro de Carvalho wrote:
> There are 2 options:
>
> 1-> The default form color is very well defined, just use
> ColorToRGB(clForm) to get it
>
> or
>
> 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)
OK, but are you saying that I've got to start filling areas at runtime
or drawing vectors? I was hoping to be able to use some "fire and
forget" bitmaps, possibly with one colour being reserved for
background/transparency.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the Lazarus
mailing list