创建一个Frame(File->New->Frame),把两个Form共有部分放在这个Frame里,然后再执行时用代码把这个Frame放在Form的合适位置: with TFrame2.Create(Self) do begin Parent := Self; Left := ...; Top := ...; end;
说的不清楚. with TFrame2.Create(Self) do begin Parent := Self; Left := ...; Top := ...; end; 好象和前面创建的frame没什么关系嘛.
with TFrame2.Create(Self) do
begin
Parent := Self;
Left := ...;
Top := ...;
end;
with TFrame2.Create(Self) do
begin
Parent := Self;
Left := ...;
Top := ...;
end;
好象和前面创建的frame没什么关系嘛.
要把这个frame放在form中的一个groupbox中如何做啊?