Skip to content
Snippets Groups Projects
Commit 4b418c76 authored by rswindell's avatar rswindell
Browse files

Converts path to uppercase.

Removed unused code.
parent e9b0cc24
No related branches found
No related tags found
No related merge requests found
......@@ -64,27 +64,12 @@ void __fastcall TTextFileEditForm::FormShow(TObject *Sender)
EditReplaceMenuItem->Enabled=false;
ReplacePopupMenuItem->Enabled=false;
}
Caption=Caption+AnsiString(" - ")+Filename;
// Screen->Cursor=crAppStart;
#if 0
Memo->Lines->Clear();
FILE* fp;
if((fp=fopen(Filename.c_str(),"r"))!=NULL) {
while(!feof(fp)) {
if(!fgets(str,sizeof(str),fp))
break;
Memo->Lines->Add(AnsiString(str).TrimRight());
}
fclose(fp);
}
#else
Caption=Caption+AnsiString(" - ")+Filename.UpperCase();
try {
Memo->Lines->LoadFromFile(Filename);
} catch(...) { }
#endif
ActiveControl=Memo;
Memo->SelStart=0;
// Screen->Cursor=crDefault;
}
//---------------------------------------------------------------------------
void __fastcall TTextFileEditForm::FontButtonClick(TObject *Sender)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment