rtl

package
v1.1.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2018 License: Apache-2.0 Imports: 3 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SysLocale 本地化相关
	SysLocale types.TSysLocale
)

Functions

func CreateShortCut added in v1.1.21

func CreateShortCut(aDestPath, aShortCutName, aSrcFileName, aIconFileName, aDescription, aCmdArgs string) bool

CreateShortCut

CN: 创建一个快捷方式
EN: Create a shortcut

1. rtl.CreateShortCut("C:\\Users\\administrator\\Desktop\\", "govcl", os.Args[0], "", "", "")
2. rtl.CreateShortCut("C:\\Users\\administrator\\Desktop\\", "govcl", os.Args[0], "", "Description text", "-a -b")

func CreateURLShortCut added in v1.1.21

func CreateURLShortCut(aDestPath, aShortCutName, aURL string)

CreateURLShortCut

CN: 创建一个url的快捷方式
EN: Create a shortcut to a URL

rtl.CreateURLShortCut("C:\\aaa\\bbb\\", "govcl", "https://github.com/ying32/govcl")

func Exclude

func Exclude(in interface{}, val ...uint8) uint32

Exclude Delphi集合减法,val...中存储为位的索引,下标为0

func ExtractFilePath

func ExtractFilePath(filename string) string

ExtractFilePath 提取文件名的路径,带“\”的

func FileExists

func FileExists(filename string) bool

FileExists 判断文件是否存在

func GetStringArrOf

func GetStringArrOf(p uintptr, index int) string

GetStringArrOf 从一个Delphi/Lazarus字符串数组获取成员

func InSets

func InSets(in interface{}, s uint32) bool

InSets Delphi集合类型的判断,类型,然后后面是第几位,下标为0

func Include

func Include(in interface{}, val ...uint8) uint32

Include Delphi集合加法,val...中存储为位的索引,下标为0

func LcLLoaded

func LcLLoaded() bool

LcLLoaded 是否加载的为lcl库,true表是是,false表示不是

func MainInstance

func MainInstance() uintptr

MainInstance EXE自身的实例

func Move

func Move(src, dest uintptr, llen int)

Move Delphi中的内存操作,不过这里传入的是指针

func SetPropertySecValue added in v1.1.21

func SetPropertySecValue(instance uintptr, propName, secPropName, value string)

SetPropertySecValue 设置对象二级属性

func SetPropertyValue added in v1.1.21

func SetPropertyValue(instance uintptr, propName, value string)

SetProperty SetPropertyValue 设置对象属性

func SetReportMemoryLeaksOnShutdown

func SetReportMemoryLeaksOnShutdown(v bool)

SetReportMemoryLeaksOnShutdown 程序结束时报告内存泄露,总有2-4字节的未知泄露位置

func ShortCutToText

func ShortCutToText(val types.TShortCut) string

ShortCutToText 将ShortCut类型转为字符串

func StrLen

func StrLen(str uintptr) int

StrLen String长度,一般用于对delphi或者lazarus的字符长检测

func SysOpen

func SysOpen(filename string)

SysOpen 打开,windows下调用ShellExecute

func TextToShortCut

func TextToShortCut(val string) types.TShortCut

TextToShortCut 将字符串转为ShortCut类型

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL