46 Useful Utility Functions For #Delphi XE8
来源:互联网 发布:学钢琴 软件 编辑:程序博客网 时间:2024/06/06 02:24
function GetCaseSensitiveFileName(const FileName: string; RootPath: string = ”): string;function isPathCanUseNow(const PathOrDir: string; const Default: Boolean = True): Boolean;function GetSDCardPath(Index: Integer = 0): string;function FindSDCardSubPath(SubPath: string; Index: Integer = 0): string;function GetAppPath: string;function BuildFileListInAPath(const Path: string; const Attr: Integer; const List: TStrings;JustFile: Boolean = False): Boolean; overload;function BuildFileListInAPath(const Path: string; const Attr: Integer;JustFile: Boolean = False): string; overload;function GetFileNamesFromDirectory(const DirName: string; const SearchFilter: string = ‘*';const FileAttribs: Integer = faAnyFile; const isIncludeSubDirName: Boolean = False; const Recursion: Boolean = False;const FullName: Boolean = False): string;function DeleteDirectoryByEcho(const Source: string;AbortOnFailure: Boolean = False; YesToAll: Boolean = True;WaitMinSecond: Integer = DeleteDirectories_WaitMinSecond): Boolean;function GetTotalSpaceSize(Path: string = PathDelim): UInt64;function GetAvailableSpaceSize(Path: string = PathDelim): UInt64;function GetFreeSpaceSize(Path: string = PathDelim): UInt64;function GetTotalMemorySize: UInt64;function GetFreeMemorySize: UInt64;function IsPadOrPC(MiniScreenInches: Single = 6.2): Boolean;function GetVolumePaths: string;function GetExternalStoragePath: string;function GetExterStoragePath: string;function GetInnerStoragePath: string;function GetIsExternalStorageRemovable: Boolean;function FindJavaClass(NamePath: string): Boolean;function FindJavaMethod(MethodName, Signature: string; CalssNamePath: string = ”): Boolean;function FindJavaStaticMethod(MethodName, Signature: string; CalssNamePath: string = ”): Boolean;Here are the string utility functions:function DetectUTF8Encoding(const s: TBytes): TEncodeType;function HasExtendCharacter(const s: TBytes): Boolean;function HasUTF8BOM(S : TStream) : boolean; overload;function HasUTF8BOM(const S: TBytes) : boolean; overload;function HasUTF8BOM(const S: MarshaledAString) : boolean; overload;function BytesAutoToString(const S: TBytes; const UnknowEncodeDefaultIsAnsi: Boolean = True): string; overload;function BytesAutoToString(const S: MarshaledAString; const UnknowEncodeDefaultIsAnsi: Boolean = True): string; overload;function StreamAutoToString(const aStream: TStream; const UnknowEncodeDefaultIsAnsi: Boolean = True): string;function IsUTF8String(const s: MarshaledAString): Boolean; overload;function IsUTF8String(const s: TBytes): Boolean; overload;Here are the Firemonkey screen functions:function GetScreenPixelsXY(const Context: TFmxObject = nil): TPoint;function GetScreenClientPixelsXY(const Context: TFmxObject = nil): TPoint;function GetScreenInchXY(const Context: TFmxObject = nil): TPointF;function GetScreenDPIXY(const Context: TFmxObject = nil): TPointF;function GetScreenDPI(const Context: TFmxObject = nil): Single;function GetScreenInches(const Context: TFmxObject = nil): Single;function GetFormXY(const AForm: TCustomForm): TPointF;function GetFormClientXY(const AForm: TCustomForm): TPointF;function GetFormClient(const AForm: TCustomForm): TRectF;function GetFormPixelsXY(const AForm: TCustomForm): TPointF;function GetFormClientPixelsXY(const AForm: TCustomForm): TPointF;And here are the message dialog functions:procedure ShowMessageWait(const AMessage: string);procedure ShowMessageFmtWait(const AMessage: string; const AParams: array of const);procedure ShowMessagePosWait(const AMessage: string; const AX, AY: Integer);
0 0
- 46 Useful Utility Functions For #Delphi XE8
- Useful functions in PHP
- 9 useful php functions
- Some Useful VBA Functions
- Useful Core Graphics functions
- useful little functions
- a useful java utility class
- File utility functions v3.02
- Delphi XE8,C++ Builder XE8,RAD Studio XE8 精简版 EMBARCADERO DELPHI XE8 LITE V11.X
- some useful functions of c++
- delphi XE8 下载、注册码、破解
- Delphi XE8 TMultiView的使用
- Delphi - Useful function / procedure
- Client-Side Object Model - Utility Functions
- Delphi XE8 及 C++Builder XE8 中文手册即将上市
- Useful functions to provide secure PHP application
- Delphi XE8,C++ Builder XE8,RAD Studio XE8 官方 ISO 文件下载,附激活工具
- Delphi XE8,C++ Builder XE8,RadStudio XE8 Update1 架构师版(附破解激活)
- hdu5336 多校联合第四场1010 模拟+bfs优先队列
- 鸟哥的私房菜学习笔记 重要的Bash Shell的操作环境
- Windows7解决VBoxDD.dll不能加载
- Integer super重写重载public4个关键字
- hdu 3790 最短路径问题 最短路Dijkstra
- 46 Useful Utility Functions For #Delphi XE8
- 使用libsvm实现文本分类
- 在网上找来的几个大牛,忽然觉得自己来参加ACM倒也不是一件错误的事情,梦想总是要有的,万一成了呢。
- Django Book CH3(视图和URL配置)
- hdoj Radar Installation
- 黑马程序员-C语言结构体使用的相关细节
- 7.31css布局模型
- 使用O-LLVM和NDK对Android应用进行混淆
- 初级Javascript(一)