[Lazarus] Had a look at control.inc..

2008-12-14 Thread Samuel Herzog
Hi folks, I had some minutes of sparetime and went through control.inc. Two things I d' like to ask: 1.) sometimes parent/FParent are checked for nil, before the method access it, and sometime not. Is this by purpose or are this potential Access-Violation candidates. 2.) In my

Re: [Lazarus] Had a look at control.inc..

2008-12-14 Thread Mattias Gaertner
On Sun, 14 Dec 2008 06:48:58 -0800 (PST) Samuel Herzog sam_her...@yahoo.com wrote: Hi folks, I had some minutes of sparetime and went through control.inc. Two things I d' like to ask: 1.) sometimes parent/FParent are checked for nil, before the method access it, and sometime not. Is this

Re: [Lazarus] Had a look at control.inc..

2008-12-14 Thread Samuel Herzog
:12 Uhr Betreff: Re: [Lazarus] Had a look at control.inc.. On Sun, 14 Dec 2008 06:48:58 -0800 (PST) Samuel Herzog sam_her...@yahoo.com wrote: Hi folks, I had some minutes of sparetime and went through control.inc. Two things I d' like to ask: 1.) sometimes parent/FParent are checked for nil

Re: [Lazarus] Had a look at control.inc..

2008-12-14 Thread Mattias Gaertner
On Sun, 14 Dec 2008 08:48:48 -0800 (PST) Samuel Herzog sam_her...@yahoo.com wrote: For example: procedure TControl.ParentFontChanged; begin if csLoading in ComponentState then exit; if FParentFont then begin Font := FParent.Font; FParentFont := true; end; end;