Changeset 11 for trunk/UMainForm.pas


Ignore:
Timestamp:
Feb 10, 2012, 2:10:20 PM (13 years ago)
Author:
chronos
Message:
  • Added: Some other examples from web.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UMainForm.pas

    r10 r11  
    210210  ProjectFileName := 'Project.b';
    211211  MemoSource.Clear;
     212  Modified := False;
    212213  UpdateInterface;
    213214end;
     
    217218  OpenDialog1.FileName := ProjectFileName;
    218219  if OpenDialog1.Execute then begin
    219     MemoSource.Lines.LoadFromFile(OpenDialog1.FileName);
     220    MemoSource.Lines.LoadFromFile(UTF8Decode(OpenDialog1.FileName));
    220221    ProjectFileName := OpenDialog1.FileName;
    221222    UpdateInterface;
     223    Modified := False;
    222224  end;
    223225end;
     
    227229  SaveDialog1.FileName := ProjectFileName;
    228230  if SaveDialog1.Execute then begin
    229     MemoSource.Lines.SaveToFile(SaveDialog1.FileName);
     231    MemoSource.Lines.SaveToFile(UTF8Decode(SaveDialog1.FileName));
    230232    ProjectFileName := SaveDialog1.FileName;
    231233    Modified := False;
Note: See TracChangeset for help on using the changeset viewer.