Hi all. After using Delphi for, oh 9 years, I found a cool tool.
If you right click on a component on a form, then select "compnents to
Code" it will generate the code needed to create that control in code.
AND, if the control, say a panel, had child controls it generates the
code for them too. I am not sure how long that this has been in
delphi...I just discovered it the other day :-)
This is code generate from a button on a form
Cheers, Jeremy
var
Button2: TButton;
Button2 := TButton.Create(Self);
with Button2 do
begin
Name := 'Button2';
Parent := Self;
Left := 8;
Top := 356;
Width := 75;
Height := 25;
Caption := 'Button2';
TabOrder := 3;
Visible := False;
WordWrap := True;
OnClick := Button2Click;
end;
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi