Re: [Lazarus] Nested Components in a Form at runtime

2018-02-15 Thread Andreas Frieß via Lazarus
Ondrej Pokorny via Lazarus wrote: > I didn't know you can use the object inspector to inspect > controls/components in runtime. How to enable it? Is this documented > somewhere? > > Ondrej Yes, Lazarus/examples/objectinspetor/ is an example. My tests based on this and mine is here https://gith

Re: [Lazarus] Nested Components in a Form at runtime

2018-02-15 Thread Mattias Gaertner via Lazarus
On Thu, 15 Feb 2018 22:02:21 +0100 Ondrej Pokorny via Lazarus wrote: >[...] > I didn't know you can use the object inspector to inspect > controls/components in runtime. How to enable it? Is this documented > somewhere? examples/objectinspector/ Mattias -- ___

Re: [Lazarus] Nested Components in a Form at runtime

2018-02-15 Thread Ondrej Pokorny via Lazarus
On 15.02.2018 19:03, Andreas Frieß via Lazarus wrote: For testing purposes, i want to create a form at runtime with chained panels - to make it simple. I use this code // Create components ATestForm := TForm.Create(nil); ATestForm.Name:= 'Main'; // Create a Panel ATestPanel :=

Re: [Lazarus] Nested Components in a Form at runtime

2018-02-15 Thread Mattias Gaertner via Lazarus
On Thu, 15 Feb 2018 19:03:37 +0100 Andreas Frieß via Lazarus wrote: > For testing purposes, i want to create a form at runtime with chained > panels - to make it simple. > > I use this code > > > // Create components > ATestForm := TForm.Create(nil); > ATestForm.Name:= 'Main'; > // Cr

[Lazarus] Nested Components in a Form at runtime

2018-02-15 Thread Andreas Frieß via Lazarus
For testing purposes, i want to create a form at runtime with chained panels - to make it simple. I use this code // Create components ATestForm := TForm.Create(nil); ATestForm.Name:= 'Main'; // Create a Panel ATestPanel := TPanel.Create(ATestForm); ATestPanel.Parent:=ATestForm; A