diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-02 12:37:41 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-02 12:37:41 -0400 |
| commit | 1f6bcde3d9ddcab921f2f4347148f6784ca36a14 (patch) | |
| tree | c0f5a3216e363f6308631f4e7a49fdaee4d2f3ad /redo/control_windows.go | |
| parent | cafc9daa720ffd3102b414ceead4a1d6683b0221 (diff) | |
Removed the generic preferredSize() from the Windows backend; all controls are now expected to provide their own on Windows (this is really the only way to go there). NOW I can rework the whole control nonsense...
Diffstat (limited to 'redo/control_windows.go')
| -rw-r--r-- | redo/control_windows.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/redo/control_windows.go b/redo/control_windows.go index 3fdec5d..b2af110 100644 --- a/redo/control_windows.go +++ b/redo/control_windows.go @@ -31,10 +31,7 @@ func newControl(class C.LPWSTR, style C.DWORD, extstyle C.DWORD) *controlbase { C.ShowWindow(c.hwnd, C.SW_HIDE) } c.fallocate = baseallocate(c) - c.fpreferredSize = func(d *sizing) (int, int) { - // TODO - return 75, 23 - } + // don't specify c.fpreferredSize; it is custom on ALL controls c.fcommitResize = func(a *allocation, d *sizing) { C.moveWindow(c.hwnd, C.int(a.x), C.int(a.y), C.int(a.width), C.int(a.height)) } |
