如何用TntForm代替TForm?
How to use TntForm to replace TForm?
我是delphi7的新手,我在delphi7中安装了TntControls,并将TForm
替换为TTntForm
,代码如下:
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, TntStdCtrls;
type
TForm1 = class(TTntForm)
private
{ Private declarations }
public
{ Public declarations }
end;
但是当我编译时,抛出错误:
Undeclared identifier: 'TTntForm'
正如人们在评论中告诉您的那样,您必须将 TntForms
添加到 uses
部分。源代码在 GitHub.
上公开提供
如果您仍然遇到相同的错误,请确保将 TntForms.pas
的路径添加到 Tools > Environment Options > Library > Library Path
或至少在 Project > Options > Directories/Conditionals
.
下
我是delphi7的新手,我在delphi7中安装了TntControls,并将TForm
替换为TTntForm
,代码如下:
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, TntStdCtrls;
type
TForm1 = class(TTntForm)
private
{ Private declarations }
public
{ Public declarations }
end;
但是当我编译时,抛出错误:
Undeclared identifier: 'TTntForm'
正如人们在评论中告诉您的那样,您必须将 TntForms
添加到 uses
部分。源代码在 GitHub.
如果您仍然遇到相同的错误,请确保将 TntForms.pas
的路径添加到 Tools > Environment Options > Library > Library Path
或至少在 Project > Options > Directories/Conditionals
.