The plot thickens - this code works - Note added the richmemo to use manually!
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
richmemo;
type
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
Form1: TForm1;
Comp : TRichMemo;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.Button1Click(Sender: TObject);
begin
Comp := TRichMemo.create(self);
Comp.Parent := self;
Comp.Top := 0;
Comp.Left:= 0;
Comp.Width:=200;
Comp.Height:=150;
end;
end.