summaryrefslogtreecommitdiff
path: root/newctrl/button_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-18 12:47:19 -0400
committerPietro Gagliardi <[email protected]>2014-10-18 12:47:19 -0400
commitb1ac28cc938d2de25357328d9da910a84a2cc8cc (patch)
treed34d26f0022dd0e9d9c7179bd59b1c4dbe7b6942 /newctrl/button_windows.go
parent0f6e65188af0c4b1d3e4dff17ceb96bbd8ebb271 (diff)
Fixed parenting weirdnesses.
Diffstat (limited to 'newctrl/button_windows.go')
-rw-r--r--newctrl/button_windows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/newctrl/button_windows.go b/newctrl/button_windows.go
index 6937473..ff5a251 100644
--- a/newctrl/button_windows.go
+++ b/newctrl/button_windows.go
@@ -24,7 +24,7 @@ func newButton(text string) *button {
controlSingleHWNDWithText: newControlSingleHWNDWithText(hwnd),
clicked: newEvent(),
}
- b.fpreferredSize = b.preferredSize
+ b.fpreferredSize = b.xpreferredSize
b.SetText(text)
C.controlSetControlFont(b.hwnd)
C.setButtonSubclass(b.hwnd, unsafe.Pointer(b))
@@ -54,7 +54,7 @@ const (
buttonHeight = 14
)
-func (b *button) preferredSize(d *sizing) (width, height int) {
+func (b *button) xpreferredSize(d *sizing) (width, height int) {
// comctl32.dll version 6 thankfully provides a method to grab this...
var size C.SIZE