79 Star 313 Fork 53

不在乎y/govcl

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
formdef.go 1.65 KB
一键复制 编辑 原始数据 按行查看 历史
//----------------------------------------
//
// Copyright © ying32. All Rights Reserved.
//
// Licensed under Apache License 2.0
//
//----------------------------------------
package api
import (
"unsafe"
"github.com/ying32/govcl/vcl/types"
)
func Form_Create2(owner uintptr, initScale bool) uintptr {
ret, _, _ := form_Create2.Call(owner, GoBoolToDBool(initScale))
return ret
}
func Form_EnabledMaximize(obj uintptr, val bool) {
form_EnabledMaximize.Call(obj, GoBoolToDBool(val))
}
func Form_EnabledMinimize(obj uintptr, val bool) {
form_EnabledMinimize.Call(obj, GoBoolToDBool(val))
}
func Form_EnabledSystemMenu(obj uintptr, val bool) {
form_EnabledSystemMenu.Call(obj, GoBoolToDBool(val))
}
func Form_SetOnDestroy(obj uintptr, fn interface{}) {
form_SetOnDestroy.Call(obj, addEventToMap(fn))
}
func Form_SetOnConstrainedResize(obj uintptr, fn interface{}) {
form_SetOnConstrainedResize.Call(obj, addEventToMap(fn))
}
func Form_SetOnWndProc(obj uintptr, fn interface{}) {
form_SetOnWndProc.Call(obj, addMessageEventToMap(fn))
}
func Form_ShowInTaskBar(obj uintptr) types.TShowInTaskbar {
r, _, _ := form_ShowInTaskBar.Call(obj)
return types.TShowInTaskbar(r)
}
// 下面两个函数放在Application下面吧,直接调用实例类
func Form_ScaleForPPI(obj uintptr, newPPI int32) {
form_ScaleForPPI.Call(obj, uintptr(newPPI))
}
func Form_ScaleControlsForDpi(obj uintptr, newPPI int32) {
form_ScaleControlsForDpi.Call(obj, uintptr(newPPI))
}
func Form_ScaleForCurrentDpi(obj uintptr) {
form_ScaleForCurrentDpi.Call(obj)
}
func Form_InheritedWndProc(obj uintptr, msg *types.TMessage) {
form_InheritedWndProc.Call(obj, uintptr(unsafe.Pointer(msg)))
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/ying32/govcl.git
git@gitee.com:ying32/govcl.git
ying32
govcl
govcl
v2.0.5

搜索帮助