unit Dialog_u;
{ Projekt DIALOG * Herwig Reidlinger }
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, Menus, StdCtrls;
type
TFormDialog =
class(TForm)
Memo1: TMemo;
OpenDialog: TOpenDialog;
SaveDialog: TSaveDialog;
MainMenu: TMainMenu;
Menu_Datei: TMenuItem;
MenuLaden: TMenuItem;
MenuSpeichern: TMenuItem;
N1: TMenuItem;
MenuBeenden: TMenuItem;
Suche1: TMenuItem;
WeiterSuchen1: TMenuItem;
Edit1: TEdit;
Edit2: TEdit;
N2: TMenuItem;
selectline1: TMenuItem;
CheckBox1: TCheckBox;
procedure MenuLadenClick(Sender: TObject);
procedure MenuSpeichernClick(Sender: TObject);
procedure MenuBeendenClick(Sender: TObject);
procedure FormResize(Sender: TObject);
procedure Suche1Click(Sender: TObject);
procedure WeiterSuchen1Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
FormDialog: TFormDialog;
x: Integer;
find: Boolean = False;
implementation
{$R *.DFM}
procedure TFormDialog.MenuLadenClick(Sender: TObject);
begin
if OpenDialog.Execute
then
TRY
Memo1.Lines.Loadfromfile(OpenDialog.Filename);
EXCEPT
ShowMessage ('
Fehler beim Laden der Datei!');
END;
end;
procedure TFormDialog.MenuSpeichernClick(Sender: TObject);
begin
if SaveDialog.Execute
then
TRY
Memo1.Lines.SavetoFile(SaveDialog.Filename);
EXCEPT
ShowMessage ('
Fehler beim Speichern der Datei!');
END;
end;
procedure TFormDialog.MenuBeendenClick(Sender: TObject);
begin
FormDialog.Close;
end;
procedure TFormDialog.FormResize(Sender: TObject);
begin
Memo1.width := FormDialog.clientwidth;
Memo1.height := FormDialog.clientheight;
end;
procedure TFormDialog.Suche1Click(Sender: TObject);
begin
//
end;
procedure TFormDialog.WeiterSuchen1Click(Sender: TObject);
begin
//
end;
end.