一个菜鸟问的超菜的问题!很急!

rainbow0326 2003-08-20 09:11:12
Application.CreateForm(Tfrm_about,frm_about);应该怎么理解?Application.CreateForm这是一个标准的什么吗?怎么才能查到类似的东东(不知道该怎么称呼 :( )呢?参数是怎么样的规则啊?
...全文
43 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
zjqyb 2003-08-20
  • 打赏
  • 举报
回复
Application.CreateForm(Tfrm_about,frm_about);其实就实现以下功能:

frm_about:=Tfrm_about.Create(Application);

其实你完全可以去掉Application.CreateForm(Tfrm_about,frm_about);
写成
with Tfrm_about.Create(Nil) do
begin
ShowModal();
free();
end;
xuejinlong 2003-08-20
  • 打赏
  • 举报
回复
Description

Call CreateForm to dynamically create a form at runtime. Developers do not need to add code for creating most forms, because typically one or more calls to CreateForm are added automatically to the project's main source when using the form designer.

CreateForm creates a new form of the type specified by the FormClass parameter and assigns it to the variable given by the Reference parameter. The owner of the new form is the Application object.

Note: By default, the form created by the first call to CreateForm in a project becomes the application抯 main form.
xuejinlong 2003-08-20
  • 打赏
  • 举报
回复
Creates a new form.

Delphi syntax:

procedure CreateForm(FormClass: TFormClass; var Reference);

C++ syntax:

void __fastcall CreateForm(System::TMetaClass* InstanceClass, void *Reference);

xuejinlong 2003-08-20
  • 打赏
  • 举报
回复
你关心这个干什么?

16,748

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 语言基础/算法/系统设计
社区管理员
  • 语言基础/算法/系统设计社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧