Delphi

Delphi

delphi xe10 手机程序事件服务操作、退出键操作

29 0

//程序事件服务操作var FMXApplicationEventService: IFMXApplicationEventService;begin if TPlatformServices.Current.SupportsPlatformService (IFMXApplicationEventService, IInterface(FMXApplicationEventService)) then FMXApplicationEventService.SetApplicationEve

Delphi

delphi xe10 麦克风、摄像头操作

154 0

delphi xe10 麦克风、摄像头操作TakePhotoFromCameraAction1: TTakePhotoFromCameraAction; // 通过手机摄像头获取图片TakePhotoFromLibraryAction1: TTakePhotoFromLibraryAction; //获取手机已存在图片ShowShareSheetAction1: TShowShareSheetAction;//用其它程序分享图片(Bitmap.Assign();)获取麦克风设置 FMX.MediaFMi

Delphi

Delphi XE10 创建匿名线程

91 0

TThread.CreateAnonymousThread( // 创建一个匿名线程, procedure begin // 代码。 TThread.Synchronize(TThread.CurrentThread, procedure // 处理异步交互 begin end); end).Start;  创建时间:2020.06.01  更新时间: 博客园 滔Roy https://www.cnblo

Delphi

Delphi XE10 Android安卓 移动端 MessageDlg 用法

60 0

Delphi XE10 Android安卓 移动端 MessageDlg 用法123456MessageDlg ('今天天气:'+#13+' very good!', TMsgDlgType.mtInformation, [TMsgDlgBtn.mbOk], 0, procedure(const AResult:TModalResult) begin if AResult=mrOk then ShowMessage('ok') els

Delphi

Delphi XE android 调试错误:connection closed gracefully

68 0

Delphi XE android 调试错误:connection closed gracefully错误出现在:服务器客户端已正常断开套接字连接,此异常用于通知服务器处理代码。此异常是正常的,只会在IDE中发生,而不是在程序作为EXE运行时发生。如果您不想看到这一点,请将此异常或EIdSilentException添加到IDE选项中,作为不中断的异常。从IDE再次点击F9,Indy将捕获并处理异常。 错误出现在:客户此连接的服务器端已正常断开连接,但您的客户端已尝试读取或写入该连接。您应该使用 try

Delphi

Delphi 命令行 打开读写txt文件

102 0

首先通过一个例子来展示pascal读写txt文件的方式:Program Salaries;Var F:Text; Salary,max:integer; Name:String[20]; MaxName:String; Sex:0..1;Begin Max:=0; Assign(F,'E:\Exam\Salary.txt'); Reset(F); While not Eof(F) Do Begin Read