summaryrefslogtreecommitdiff
path: root/prefsize_windows.go
AgeCommit message (Collapse)Author
2014-04-02Switched to calling the Windows MulDiv() function instead of reimplementing ↵Pietro Gagliardi
it ourselves in prefsize_windows.go.
2014-04-01Changed the font loading on Windows to always load the control font unless a ↵Pietro Gagliardi
flag to not load any font is set; when menus and statusbars are added, they need special casing. This also means the preferred size calculations reads controlFont directly (it will need the same change).
2014-04-01Fixed Windows control sizing: turns out simply calling GetTextMetrics() was ↵Pietro Gagliardi
not enough, as the GetDC() functions don't load the control font into the DC; we have to do it ourselves with SelectObject() (according to GetTextMetrics()'s docs on MSDN). Upon re-evaluation, the only things that need custom fonts are menus and statusbars; I don't know if menus can be done with the standard contorls and statusbars change the font of all controls inside... so how fonts are handled in classData needs to change now.
2014-03-12Separated file creation dates from the package comment.Pietro Gagliardi
2014-03-09Changed Windows sysData.preferredSize() to panic on error, since the other ↵Pietro Gagliardi
platforms don't return explicit errors either.
2014-02-25Added most of the Windows implementation of ProgressBar. Now to grab the ↵Pietro Gagliardi
comctl32.dll stuff.
2014-02-24Quick documentation change in prefsize_windows.go.Pietro Gagliardi
2014-02-24Some notes on the last few changes.Pietro Gagliardi
2014-02-24And the uitask message fixed was the issue all along. Now it works.Pietro Gagliardi
2014-02-24Oh right derp, preferredSize() is running on uitask already; don't use the ↵Pietro Gagliardi
dispatch channel. Almost working...
2014-02-24Added Windows preferred size code. It doesn't work right now; both GetDC() ↵Pietro Gagliardi
and GetWindowDC() are not returning at all on both wine and Windows XP; need to debug (print guards are included).