/
icontrol.go
113 lines (77 loc) · 1.61 KB
/
icontrol.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
package vcl
import . "github.com/ying32/govcl/vcl/types"
type IControl interface {
IComponent
// ---------------------方法
Perform(uint32, uintptr, int) int
SendToBack()
Show()
Hide()
Refresh()
Repaint()
Invalidate()
Realign()
// ---------------------属性
Align() TAlign
SetAlign(TAlign)
Visible() bool
SetVisible(bool)
Enabled() bool
SetEnabled(bool)
Left() int32
SetLeft(int32)
Top() int32
SetTop(int32)
Width() int32
SetWidth(int32)
Height() int32
SetHeight(int32)
Hint() string
SetHint(string)
ShowHint() bool
SetShowHint(bool)
Parent() *TWinControl
SetParent(IWinControl)
SetBounds(int32, int32, int32, int32)
Caption() string
SetCaption(string)
Cursor() TCursor
SetCursor(TCursor)
Action() *TAction
SetAction(IComponent)
Anchors() TAnchors
SetAnchors(TAnchors)
BoundsRect() TRect
SetBoundsRect(TRect)
ClientHeight() int32
SetClientHeight(int32)
ClientWidth() int32
SetClientWidth(int32)
ClientOrigin() TPoint
ClientRect() TRect
SetTextBuf(string)
AlignWithMargins() bool
SetAlignWithMargins(bool)
Margins() *TMargins
SetMargins(*TMargins)
PopupMenu() *TPopupMenu
SetPopupMenu(IComponent)
Font() *TFont
SetFont(*TFont)
CustomHint() *TCustomHint
SetCustomHint(IComponent)
ParentCustomHint() bool
SetParentCustomHint(bool)
StyleElements() TStyleElements
SetStyleElements(TStyleElements)
Floating() bool
SetFloating(bool)
Color() TColor
SetColor(TColor)
ControlStyle() TControlStyle
SetControlStyle(TControlStyle)
ControlState() TControlState
SetControlState(TControlState)
// ---------------------事件
//SetOnClick(TNotifyEvent)
}