Sign in Join
Wiki copytemporary

TForm/fr

Deutsch · English · Français · Suomi · Русский · 中文(中国) · 日本語

TForm est la classe des objets Fiche. Toute les fiches créées en conception peuvent être dérivées de TForm.

La fiche représente un fenêtre ou une boîte de dialogue qui forme l'interface utilisateur d'une application. C'est le conteneur (et le propiétaire) sur lequel les composants (p.ex. boutons, étiquettes, champs d'édition, images...) peuvent être insérés.

Une nouvelle fiche peut être créée en utilisant File|new....

Application

Au démarrage du programme, la fiche principale et d'autres fiches qui doivent être 'auto-créées' sont alors instanciées. Les fiches auto-créées peuvent être sélectionnées depuis les fiches disponibles dans [Project|Project Options|Forms]. Si pour quelques raisons les fiches disponibles ne font pas apparaître celle qui devrait être auto-créée, ajoutez le nom d'unité de la fiche en question dans la clause uses du programme et ajoutez une ligne Application.CreateForm pour cette fiche.

pascal
program PTest;
uses
  Forms,
  UMainForm,
  UOtherForm;
{$R *.res}

begin
  Application.Title:='Test';
  RequireDerivedFormResource := True;
  Application.Initialize();
  Application.CreateForm(TMainForm, MainForm);
  Application.CreateForm(TOtherForm, OtherForm);
  Application.Run();
end.

Propriétés

Voir aussi


From the Free Pascal wiki, page "TForm/fr", as it stood on 2020-03-01 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.