Thema: Delphi Textedittutorial Problem

Einzelnen Beitrag anzeigen

Benutzerbild von Die Muhkuh
Die Muhkuh

Registriert seit: 21. Aug 2003
7.332 Beiträge
 
Delphi 2009 Professional
 
#8

Re: Textedittutorial Problem

  Alt 16. Jan 2005, 15:05
Hi,

Delphi-Quellcode:
procedure TMainform.Speichern1Click(Sender: TObject);
begin
if OpenDialog1.Filename<>'then
  begin
    Richedit1.Lines.SavetoFile(OpenDialog1.Filename);
  end else
  begin
    if SaveDialog1.Filename<>'then
      begin
         Richedit1.Lines.SavetoFile(SaveDialog1.Filename);
      end else
      begin
        if SaveDialog1.Execute then
  begin
    if SaveDialog1.Filename<>'then
    begin
      Richedit1.Lines.SavetoFile(SaveDialog1.Filename);
      OpenDialog1.Filename:='';
    end;
end;
end;
end;

procedure TMainform.Drucken1Click(Sender: TObject);[/color]
begin
  Richedit1.Print('');
end;

procedure TMainform.Beenden1Click(Sender: TObject);
begin
  MainForm.Close;
end;
  Mit Zitat antworten Zitat