Fixed: Hello WAS: Re: [lazarus] Editor crashing when adding text
Samuel Liddicott
sam at campbellsci.co.uk
Tue Dec 7 08:28:48 EST 1999
> -----Original Message-----
> From: vital at videotron.ca [mailto:vital at videotron.ca]
> Sent: Tuesday, December 07, 1999 01:30 AM
> To: lazarus at miraclec.com
> Subject: Re: Fixed: Hello WAS: Re: [lazarus] Editor crashing when adding
> text
>
>
> At 02:24 99-12-07 +0100, you wrote:
> >
> >Ah, thats an easy one.
> >
> >Since now (or for while), to show a control is has to have at least a
> >Parent. In the past the owner was erroneous used as a parent.
> (The owner is
> >the VCL/LCL class owner, not the graphical owner). Thats why the button
> >doid show up in the past and didnt till now.
> >(You can try to create a button without parent in Delphi!)
> >
> >Marc
>
> Marc, you obsolutly need a parent in Delphi else you raise an exception.
You don't have to raise an exception. I sometimes have controls about
without parents. Of course they are not visible, I set the parent when and
where I want them to appear.
I also often change the parent during runtime to make controls appear
somewhere else (hence need for destroywnd and createwnd)
Sam
More information about the Lazarus
mailing list