diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-01 21:35:56 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-01 21:35:56 -0400 |
| commit | 61cf72e44a1d7a9c76bb3ac844bba84f55f43321 (patch) | |
| tree | 407d5b206aa257ee837845fcb54023ec2a2356dc | |
| parent | 3d002cf3a676e41246796031cf562f18d3921a8c (diff) | |
Added debug chatter to Button.preferredSize() on Windows.
| -rw-r--r-- | redo/basicctrls_windows.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/redo/basicctrls_windows.go b/redo/basicctrls_windows.go index 5ad5066..9f5fe54 100644 --- a/redo/basicctrls_windows.go +++ b/redo/basicctrls_windows.go @@ -70,6 +70,7 @@ func (b *button) buttonpreferredSize(d *sizing) (width, height int) { return int(size.cx), int(size.cy) } // that failed, fall back +println("message failed; falling back") // 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) |
