summaryrefslogtreecommitdiff
path: root/group_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'group_windows.go')
-rw-r--r--group_windows.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/group_windows.go b/group_windows.go
index fda95e3..05956b0 100644
--- a/group_windows.go
+++ b/group_windows.go
@@ -6,8 +6,8 @@ package ui
import "C"
type group struct {
- _hwnd C.HWND
- _textlen C.LONG
+ _hwnd C.HWND
+ _textlen C.LONG
*container
}
@@ -17,8 +17,8 @@ func newGroup(text string, control Control) Group {
C.BS_GROUPBOX,
C.WS_EX_CONTROLPARENT)
g := &group{
- _hwnd: hwnd,
- container: newContainer(control),
+ _hwnd: hwnd,
+ container: newContainer(control),
}
g.SetText(text)
C.controlSetControlFont(g._hwnd)
@@ -57,7 +57,7 @@ func (g *group) allocate(x int, y int, width int, height int, d *sizing) []*allo
func (g *group) preferredSize(d *sizing) (width, height int) {
width, height = g.child.preferredSize(d)
- if width < int(g._textlen) { // if the text is longer, try not to truncate
+ if width < int(g._textlen) { // if the text is longer, try not to truncate
width = int(g._textlen)
}
// the two margin constants come from container_windows.go