Einzelnen Beitrag anzeigen

Benutzerbild von Chemiker
Chemiker

Registriert seit: 14. Aug 2005
1.858 Beiträge
 
Delphi 11 Alexandria
 
#8

Re: Programm Infos

  Alt 8. Okt 2008, 23:55
Hallo Michi003,

du muss den Namen des Form nehmen und die Unit unter uses eintragen.

Delphi-Quellcode:
unit About;

interface

uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
  Buttons, ExtCtrls;

type
  TAboutBox = class(TForm)
    Panel1: TPanel;
    ProgramIcon: TImage;
    ProductName: TLabel;
    Version: TLabel;
    Copyright: TLabel;
    Comments: TLabel;
    OKButton: TButton;
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  AboutBox: TAboutBox; // Name des Froms!

implementation

{$R *.dfm}

end.
Delphi-Quellcode:
unit uInfoFensterDemo;

interface

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

type
  TfrmHauptForm = class(TForm)
    btnInfoFenster: TButton;
    procedure btnInfoFensterClick(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  frmHauptForm: TfrmHauptForm;

implementation

{$R *.dfm}

procedure TfrmHauptForm.btnInfoFensterClick(Sender: TObject);
begin
  AboutBox.ShowModal;
end;

end.
Bis bald Chemiker
wer gesund ist hat 1000 wünsche wer krank ist nur einen.
  Mit Zitat antworten Zitat