IIRC, it's because the "design choice" was to let the Window Manager
choose the color.

2007/4/16, Giuliano Colla <[EMAIL PROTECTED]>:
Trying to convert to Lazarus Delphi projects, I stumbled in quite a
number of incompatibilities. Let's start with TForm.

1) TForm.Color property sicks stubbornly to clBtnFace, whatever you do.
Setting a different Color triggers a repaint, but the form is painted
with the default color. What is weird is that if you put a component
such as a Panel on the form and set its ParentColor true, then the
component is painted on the Form.Color you set, while the form below
doesn't change. See attached images. Panel1.Parent Color is set to true,
and an OnClick event sets Form1.Color to clLime.

2) Delphi Form has a Bitmap property which allows to set a background
image on the form, while Lazarus does not.

Of course there are workarounds, using OnPaint events, but this isn't
pretty, because the form is first painted as lazarus believes right, and
then repainted as I want.

Are those design choices, or bugs?

Giuliano





--
Atenciosamente,

Alexsander da Rosa
http://alexrosa.blogspot.com - Blog Pessoal
http://www.pliber.org - Partido Libertário

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to