[lazarus] TNotebook

Stefan Hille stoppok at osibisa.ms.sub.org
Wed Jan 5 17:04:48 EST 2000


On Tue, Jan 04, 2000 at 10:57:31AM -0600, Shane Miller wrote:
> Has anyone noticed this problem.
> Write code to create a new page on a notebook and set the pageindex to
> the new page. I get a "Contrl has no parent" error and it freezes on me.
> 
> Anyone else get this?
> Shane
> 
Not directly, but when I updated some examples during the last week I
noticed that parent is no longer set automatically to AOwner during Create.
So for every object you have to call

  myObject := TSomeObject.Create (self);
  myObject.Parent := self;

I always wanted to ask why this new behaviour has been introduced but just
forgot about that.

bye,

  Stefan

-- 
---------------------------------------------------------
Stefan Hille          email: stoppok at osibisa.ms.sub.org 
48155 Muenster	      voice: 0251/664695 






More information about the Lazarus mailing list