提交 73f3e3da 编写于 作者: C cz_012273

另存时显示文件名

上级 56a39d4d
......@@ -27,8 +27,8 @@ object Form1: TForm1
Size.PlatformDefault = False
TabOrder = 0
OnMouseLeave = Memo1MouseLeave
Viewport.Width = 401.000000000000000000
Viewport.Height = 473.000000000000000000
Viewport.Width = 393.000000000000000000
Viewport.Height = 465.000000000000000000
end
object FileNew: TButton
StyledSettings = [Family, Style, FontColor]
......
......@@ -131,10 +131,14 @@ begin
end;
procedure TForm1.ResultProc1(AResult: Boolean; AFileName: string); //默认参数过程1,另存用到
var
s:string;
begin
if AResult then
begin
Memo1.Lines.SaveToFile(AFileName);
s:=copy(AFileName,pos('Documents/',AFileName)+10,50); //取文件名(不带路径)
label1.text:='当前文件:'+s;
end;
end;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册