Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
cz_012273
MyDelphi
提交
09a81f8f
MyDelphi
项目概览
cz_012273
/
MyDelphi
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
MyDelphi
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
09a81f8f
编写于
7月 28, 2023
作者:
C
cz_012273
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复另存文件不输入文件名退出后出错;去掉主界面缩放控件,以适应手机横屏布局。
上级
43b41846
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
45824 addition
and
13563 deletion
+45824
-13563
MainForm.fmx
MainForm.fmx
+13486
-13484
MainForm.pas
MainForm.pas
+7
-7
MyDelphi.dproj
MyDelphi.dproj
+5
-5
MyDialogs.pas
MyDialogs.pas
+8
-0
Unit1.pas
Unit1.pas
+6
-3
mainform.LgXhdpiPh.fmx
mainform.LgXhdpiPh.fmx
+32312
-64
未找到文件。
MainForm.fmx
浏览文件 @
09a81f8f
此差异已折叠。
点击以展开。
MainForm.pas
浏览文件 @
09a81f8f
...
...
@@ -11,21 +11,21 @@ uses
FMX
.
Objects
;
type
TToolsForm
=
class
(
TForm
)
ScaledLayout1
:
TScaledLayout
;
Label2
:
TLabel
;
Edit2
:
TEdit
;
StyleBook1
:
TStyleBook
;
ComboBox1
:
TComboBox
;
Edit1
:
TEdit
;
Edit2
:
TEdit
;
Image1
:
TImage
;
Rectangle1
:
TRectangle
;
Label1
:
TLabel
;
ComboBox1
:
TComboBox
;
Label2
:
TLabel
;
Label3
:
TLabel
;
SpeedButton1
:
TSpeedButton
;
StyleBook1
:
TStyleBook
;
SpeedButton2
:
TSpeedButton
;
SpeedButton3
:
TSpeedButton
;
SpeedButton4
:
TSpeedButton
;
SpeedButton5
:
TSpeedButton
;
Image1
:
TImage
;
Rectangle1
:
TRectangle
;
Panel1
:
TPanel
;
procedure
FormCreate
(
Sender
:
TObject
);
procedure
TakePicturePermissionRequestResult
(
Sender
:
TObject
;
...
...
MyDelphi.dproj
浏览文件 @
09a81f8f
...
...
@@ -346,23 +346,23 @@
<Overwrite>true</Overwrite>
</Platform>
</DeployFile>
<DeployFile LocalName="
Android64\Debug\colors.xml" Configuration="Debug" Class="Android_Colors
">
<DeployFile LocalName="
$(BDS)\bin\Artwork\Android\FM_NotificationIcon_24x24.png" Configuration="Debug" Class="Android_NotificationIcon24
">
<Platform Name="Android64">
<RemoteName>ic_notification.png</RemoteName>
<Overwrite>true</Overwrite>
</Platform>
</DeployFile>
<DeployFile LocalName="Android64\Debug\
styles.xml" Configuration="Debug" Class="AndroidSplashStyles
">
<DeployFile LocalName="Android64\Debug\
AndroidManifest.xml" Configuration="Debug" Class="ProjectAndroidManifest
">
<Platform Name="Android64">
<Overwrite>true</Overwrite>
</Platform>
</DeployFile>
<DeployFile LocalName="
$(BDS)\bin\Artwork\Android\FM_NotificationIcon_24x24.png" Configuration="Debug" Class="Android_NotificationIcon24
">
<DeployFile LocalName="
Android64\Debug\colors.xml" Configuration="Debug" Class="Android_Colors
">
<Platform Name="Android64">
<RemoteName>ic_notification.png</RemoteName>
<Overwrite>true</Overwrite>
</Platform>
</DeployFile>
<DeployFile LocalName="Android64\Debug\
AndroidManifest.xml" Configuration="Debug" Class="ProjectAndroidManifest
">
<DeployFile LocalName="Android64\Debug\
styles.xml" Configuration="Debug" Class="AndroidSplashStyles
">
<Platform Name="Android64">
<Overwrite>true</Overwrite>
</Platform>
...
...
MyDialogs.pas
浏览文件 @
09a81f8f
...
...
@@ -137,6 +137,7 @@ type
protected
function
GetFileName
:
string
;
override
;
procedure
DoConfirm
;
override
;
procedure
DoCancel
;
override
;
procedure
DoShow
;
override
;
procedure
SetFilter
(
const
Value
:
string
);
override
;
end
;
...
...
@@ -719,6 +720,7 @@ begin
FListType
:=
Value
;
end
;
procedure
TMyOpenDialog
.
VirtualKeyboardChangeHandler
(
const
Sender
:
TObject
;
const
Msg
:
System
.
Messaging
.
TMessage
);
var
...
...
@@ -752,6 +754,12 @@ begin
ModalResult
:=
mrOK
;
end
;
procedure
TMySaveDialog
.
DoCancel
;
begin
ModalResult
:=
mrCancel
;
close
;
end
;
procedure
TMySaveDialog
.
DoShow
;
begin
inherited
;
...
...
Unit1.pas
浏览文件 @
09a81f8f
...
...
@@ -141,6 +141,7 @@ procedure TForm1.ResultProc1(AResult: Boolean; AFileName: string);
var
s
:
string
;
begin
if
AResult
then
begin
Memo1
.
Lines
.
SaveToFile
(
AFileName
);
...
...
@@ -173,14 +174,16 @@ begin
end
;
procedure
TForm1
.
FileSaveClick
(
Sender
:
TObject
);
// 保存
var
s
:
string
;
begin
showmessage
(
'当前保存位置及文件名:'
+
FFileName
);
if
FFileName
=
sUntitled
then
s
:=
copy
(
FFileName
,
pos
(
'Documents/'
,
FFileName
)
+
10
,
50
);
if
s
=
'.txt'
then
FileSaveAsClick
(
Sender
)
else
begin
showmessage
(
'当前保存位置及文件名:'
+
FFileName
);
Memo1
.
Lines
.
SaveToFile
(
FFileName
);
// Memo1.text := '';
end
;
...
...
mainform.LgXhdpiPh.fmx
浏览文件 @
09a81f8f
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录