[fpc-pascal] Re: command-line+Carbon template

2008-10-03 Thread Danie
On Ma, 2008-09-29 at 11:32 +0200, [EMAIL PROTECTED] wrote: : > Message: 2 > Date: Sun, 28 Sep 2008 08:44:46 -0700 (PDT) A bit late, but let's give it a try. : > Subject: [fpc-pascal] Re: command-line+Carbon template : > Be all that as it may, this whole Rube Goldberg runs great when compiled > und

Re: [fpc-pascal] How do I add a TComponent to TPanel dynamically?

2008-08-27 Thread Danie
Hi Micheal On Wo, 2008-08-27 at 14:52 +0100, Michael Green wrote: > Hi Danie, > > Other than what was pointed out with create/destroy, wouldn't it create > a memory leak with the NEW? > > procedure TForm1.Button1Click(Sender: TObject); > > begin > >

Re: [fpc-pascal] How do I add a TComponent to TPanel dynamically?

2008-08-26 Thread Danie
Great Stephano! That did the job. On Di, 2008-08-26 at 10:42 +0300, Stephano wrote: > fCVShape.Create(Sender) -> fCVShape := TShape.Create(Sender) > fCVShape.Destroy -> fCVShape.Free Thanks DanieW ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.

[fpc-pascal] How do I add a TComponent to TPanel dynamically?

2008-08-25 Thread Danie
I hope this the right forum for this question (gtk on lazarus-0.9.24-1.fc8 rpm on fpc-2.2.0-10.fc8 rpm)(but I know there are people here that can help me %^). I would like to add a special TShape (descendant or TComponent) to a panel. I tried the following but must be missing something. type p