Jetzt kommt aber die Windows Fehlermeldung: Class TButton not found.
Dannach wird das Programm Beendet.
Hie der Quelcode von Unit4:
Code: Alles auswählen
unit Unit5;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
StdCtrls, ExtCtrls;
type
{ TForm5 }
TForm5 = class(TForm)
Edit1: TEdit;
GroupBox1: TGroupBox;
Label1: TLabel;
Memo1: TMemo;
RadioButton1: TRadioButton;
RadioButton2: TRadioButton;
procedure FormCreate(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
Form5: TForm5;
implementation
{ TForm5 }
procedure TForm5.FormCreate(Sender: TObject);
begin
memo1.Clear;
memo1.Text := ('So das übliche bla bla, weiteres unter' +#13 +'www...'); ///////////////////////////
if not fileexists ('C:\Dokumente und Einstellungen\All Users\Startmenü\Programme') then begin
radiobutton2.checked := true;
radiobutton2.enabled := false; end else radiobutton1.checked := true;
end;
initialization
{$I unit5.lrs}
end.