Re: [Lazarus] Accessing components in FormCreate event

2016-09-22 Thread Mattias Gaertner
On Thu, 22 Sep 2016 09:50:06 +0100 Lukasz Sokol wrote: >[...] > From what I remember (on Turbo Delphi, but this is generally true I think) > anything that causes the form to redraw, > (as it's been indicated in responses here too - resizing, aligning, changing > colours etc) > is a really bad id

Re: [Lazarus] Accessing components in FormCreate event

2016-09-22 Thread Lukasz Sokol
On 22/09/16 08:13, Luca Olivetti wrote: > El 22/09/16 a les 08:47, Lars ha escrit: > >> >> However these may be issues with formcreate that are not related to >> the bugs I have come across. I'm trying to remember what exactly >> was the problem that I had in FormCreate, but can't remember > >

Re: [Lazarus] Accessing components in FormCreate event

2016-09-22 Thread Luca Olivetti
El 22/09/16 a les 08:47, Lars ha escrit: However these may be issues with formcreate that are not related to the bugs I have come across. I'm trying to remember what exactly was the problem that I had in FormCreate, but can't remember I don't remember exactly, but the size of the component i

Re: [Lazarus] Accessing components in FormCreate event

2016-09-21 Thread Lars
On Thu, September 22, 2016 12:31 am, I previously wrote: > If I could just find one other person that has been haunted by accessing > components in formcreate, then I'd confirm I am not imagining things i.e. here are some issues others have come across which may be semi related to problems I have

Re: [Lazarus] Accessing components in FormCreate event

2016-09-21 Thread Lars
> No, formcreate is the correct event to set up new components. > OnShow may be called multiple times in the lifetime of a form. > > Michael. In OnShow I use a counter to only do the change on the first show. I've even made a FirstShow event years ago. I trust what you say since you are very expe