D
donggu
Unregistered / Unconfirmed
GUEST, unregistred user!
父窗口所在单元:MAIN
子窗口:unit Childwin,
TMDIChild = class(TForm)
现增加一个窗口,UNIT UNIT1,
TForm1 = class(TForm)
uses Main,Childwin;
在增加窗口中:
procedure TForm1.Button1Click(Sender: TObject);
begin
with ActiveMDIChild as TMDIChild do
Showmessage(RichEdit1.name);
end;
就抱错,引用不了TMDIChild 的 RichEdit控件
子窗口:unit Childwin,
TMDIChild = class(TForm)
现增加一个窗口,UNIT UNIT1,
TForm1 = class(TForm)
uses Main,Childwin;
在增加窗口中:
procedure TForm1.Button1Click(Sender: TObject);
begin
with ActiveMDIChild as TMDIChild do
Showmessage(RichEdit1.name);
end;
就抱错,引用不了TMDIChild 的 RichEdit控件