Search code examples
delphidelphi-7

How to use TntForm to replace TForm?


I am new to delphi 7, I installed TntControls into delphi7, and replace TForm to TTntForm, code like below:

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, TntStdCtrls;

type
  TForm1 = class(TTntForm)
  private
    { Private declarations }
  public
    { Public declarations }
  end;

But when I compile, the error throw:

Undeclared identifier: 'TTntForm'

Solution

  • As people told you in comments, you have to add TntForms into the uses section. The source code is publicly available on GitHub.

    In case you still have the same error, be sure that the path to the TntForms.pas is added to Tools > Environment Options > Library > Library Path or at least under Project > Options > Directories/Conditionals.