[lazarus] Patch win32 intf/lcl: brush init

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Sep 26 02:57:47 EDT 2003


On Thu, 25 Sep 2003 18:30:25 +0200
"Marc Weustink" <marc.weustink at cuperus.nl> wrote:

> + From: Mattias Gaertner [mailto:nc-gaertnma at netcologne.de]
> + Sent: donderdag 25 september 2003 17:25
> +
> + On Thu, 25 Sep 2003 15:17:23 +0200
> + "Marc Weustink" <marc.weustink at cuperus.nl> wrote:
> +
> + > + From: Micha Nelissen [mailto:M.Nelissen at student.tue.nl]
> + > + Sent: donderdag 25 september 2003 8:01
> + > + To: lazarus at miraclec.com
> + > + Subject: [lazarus] Patch win32 intf/lcl: brush init
> + > +
> + > +
> + > + Hi,
> 
> [Snip]
> + >
> + > + It's also possible to write a GetBrush method to initialize
> + > on demand.
> + >
> + > That is a better way.
> + >
> + > In Delphi the Wincontrol.Brush is always created. In the LCL it is by
> + > default nil since onle a few components need it. In that case
> + > we need a GetBrush to create it Dynamic.
> +
> + Or BrushNeeded.
> 
> That's something internal.
> 
> You need a GetBrush anyhow as reader for the Brush property. Now it reads
> FBrush.
> 
> As a user, if I need the public Wincontrol.Brush, I don't want to get
> annoyed with an extra call to BrushNeeded by me :)

Implemented GetBrush.


Mattias






More information about the Lazarus mailing list