diff options
| author | Pietro Gagliardi <[email protected]> | 2014-10-16 15:16:11 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-10-16 15:16:11 -0400 |
| commit | 7c9c51a0832b90fbd2e1c35ed0ba3f547911a31e (patch) | |
| tree | 088554d64335d9a5d84da9186f902f1691a30962 /newctrl/button_windows.go | |
| parent | 66d241074aaa82f4c3f4ffcdd5c0d6c73773483e (diff) | |
Fixed preferred size forgetfulness.
Diffstat (limited to 'newctrl/button_windows.go')
| -rw-r--r-- | newctrl/button_windows.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/newctrl/button_windows.go b/newctrl/button_windows.go index d7cfff8..6937473 100644 --- a/newctrl/button_windows.go +++ b/newctrl/button_windows.go @@ -55,7 +55,6 @@ const ( ) func (b *button) preferredSize(d *sizing) (width, height int) { -return 0,0/*TODO/* // comctl32.dll version 6 thankfully provides a method to grab this... var size C.SIZE @@ -69,5 +68,4 @@ return 0,0/*TODO/* // don't worry about the error return from GetSystemMetrics(); there's no way to tell (explicitly documented as such) xmargins := 2 * int(C.GetSystemMetrics(C.SM_CXEDGE)) return xmargins + int(b.textlen), fromdlgunitsY(buttonHeight, d) -*/ } |
