-
Notifications
You must be signed in to change notification settings - Fork 0
/
formdef.go
42 lines (32 loc) · 885 Bytes
/
formdef.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package vcl
import (
. "gitee.com/ying32/govcl/vcl/api"
. "gitee.com/ying32/govcl/vcl/types"
)
func (f *TForm) ScreenCenter() {
Form_SetPosition(f.instance, PoScreenCenter)
}
func (f *TForm) EnabledMaximize(val bool) {
Form_EnabledMaximize(f.instance, val)
}
func (f *TForm) EnabledMinimize(val bool) {
Form_EnabledMinimize(f.instance, val)
}
func (f *TForm) EnabledSystemMenu(val bool) {
Form_EnabledSystemMenu(f.instance, val)
}
func (f *TForm) ScaleForPPI(val int32) {
Form_ScaleForPPI(f.instance, val)
}
func (f *TForm) ScaleControlsForDpi(val int32) {
Form_ScaleControlsForDpi(f.instance, val)
}
func (f *TForm) SetAllowDropFiles(val bool) {
Form_SetAllowDropFiles(f.instance, val)
}
func (f *TForm) AllowDropFiles() bool {
return Form_GetAllowDropFiles(f.instance)
}
func (f *TForm) SetOnDropFiles(fn TDropFilesEvent) {
Form_SetOnDropFiles(f.instance, fn)
}