summaryrefslogtreecommitdiff
path: root/sysdata_windows.go
AgeCommit message (Collapse)Author
2014-06-10More go fmt.Pietro Gagliardi
2014-06-09Implemented RepaintAll() on Windows.Pietro Gagliardi
2014-06-09Resolved vertical alignment of labels on Windows.Pietro Gagliardi
2014-06-09Removed TODO about Windows label ellipsization; SS_LEFTNOWORDWRAP's docs say ↵Pietro Gagliardi
so. Replaced it with one about vertical label alignment...
2014-06-07Fixed the Windows 7 progressbar animation dumbness.Pietro Gagliardi
2014-06-07Changed SetWindowLong() to SetWindowLongPtr() in the Windows backend. I ↵Pietro Gagliardi
forgot I already had some there :|
2014-06-05Implemented code to save and restore control focus on Windows properly when ↵Pietro Gagliardi
switching away from/back to our program. It's disabled for now though because it doesn't seem to work...
2014-06-05Changed Checkbox on Windows to use BS_CHECKBOX instead of BS_AUTOCHECKBOX; ↵Pietro Gagliardi
this will be necessary to fix the focus issue in todo.md (see http://blogs.msdn.com/b/oldnewthing/archive/2014/05/22/10527522.aspx).
2014-06-03Decided to panic in the hwnd sanity check in sysdata_windows.go; the ↵Pietro Gagliardi
situation /is/ exceptional, after all (and we need to just get rid of all errors sometime).
2014-06-03Migrated area_windows.go to the new string handling. I think that's it for ↵Pietro Gagliardi
converting existing code... Now to test on real Windows.
2014-06-03Migrated stdwndclass_windows.go to the new string handling.Pietro Gagliardi
2014-06-03Converted sysdata_windows.go to use the new string conversion setup from the ↵Pietro Gagliardi
previous commit. This has to be first, otherwise a few other things will fail to compile...
2014-05-30Changed storeSysData() on Windows to write the HWND to the sysData structure ↵Pietro Gagliardi
there. This will be important for removing some of the TODOs from areaWndProc().
2014-05-30Cleaned up the classType struct and sysData.make() in sysdata_windows.go to ↵Pietro Gagliardi
remove unused fields and the window class registration code now that we no longer register window classes on the fly for each new Window/Area.
2014-05-30Changed Areas on WIndows so that they all use the same window class, rather ↵Pietro Gagliardi
than having one per Area.
2014-05-30Changed Areas on Windows to store their sysData inside the window memory ↵Pietro Gagliardi
instead of being given it via a closure. Actually having only one window class for all Areas comes next.
2014-05-30Converted the standard Windows window class (for Window) to be a single ↵Pietro Gagliardi
class, rather than having a new one for each Window. Now for Area.
2014-05-30Moved the standard window class (for Window) on Windows to get the sysData ↵Pietro Gagliardi
pointer from CreateWindowEx() and store it in the window memory instead of being given it via a closure. This will lead to having only one window class for all Windows, which will come next. Also fixed an error in windowsconstgen's output related to GetWindowLongPtr()/SetWindowLongPtr().
2014-05-29Checked to see if the previous commit worked after removing the leftover ↵Pietro Gagliardi
Combobox selectIndex() code; it does. Removed the dummy code from the Windows and GTK+ backends as well.
2014-05-25Removed constants from windows_windows.go, controls_windows.go, and ↵Pietro Gagliardi
comctl_windows.go, as we can now use the constants generator.
2014-05-25Removed CW_USEDEFAULT variable definition. It won't compile right now, but ↵Pietro Gagliardi
our cgo-based generator will make sure that isn't a problem.
2014-05-25Changed most instances of var to const in the Windows code. Only one left...Pietro Gagliardi
2014-05-23Implemented triple-clicks and up on Windows.Pietro Gagliardi
2014-05-17Found a method in NSArrayController via Stack Overflow which lets me ↵Pietro Gagliardi
suppress selection-changing behavior on NSTableView inserts; use that on Listbox in Mac OS X. This means sysData.selectIndices() and its Mac OS X implementation can (and has) gone away, clearing TODOs on Windows and Unix by extension.
2014-05-11Consistency change: all Windows API structure field names now match ↵Pietro Gagliardi
case-wise (some were forcibly exported in the past for historical reasons: I originally started package ui by trying to write a Windows API wrapper, but decided to ditch that and just use the Windows API directly from package ui). Also more TODOs.
2014-04-28More Windows TODO cleanup/removal and future plans. The message-only window ↵Pietro Gagliardi
in uitask_windows.go now has a title.
2014-04-13Fixed Area test time label weirdness by making Labels truncate their text ↵Pietro Gagliardi
instead of word-wrapping on all platforms. This doesn't explain GTK+/Wayland, alas.
2014-04-13Rolled back the Windows horizontally scrolling Listbox changes because I ↵Pietro Gagliardi
can't seem to get it to work on Mac OS X (and keeping that code there is inefficient); removed the guarantee of horizontal scrollbars in Listbox and made that a future plan. Both the Windows and the non-working Mac OS X code is in unmigrated/hscrolllistbox.go (and the unmigrated/ folder will be renamed shortly).
2014-04-13Added horizontal scrollbars to Listboxes on Windows. Also fixed typos and ↵Pietro Gagliardi
bugs in Windows sysData.selectedTexts().
2014-04-12Fixed Listboxes on Mac OS X having an initial selection.Pietro Gagliardi
2014-04-12Fixed Comboboxes on Mac OS X having an initial selection. This also lays the ↵Pietro Gagliardi
groundwork for adding Combobox/Listbox.Select() as a public function...
2014-04-10More future plans and TODOs.Pietro Gagliardi
2014-04-02Fixed Listbox and LineEdit borders on Windows. Also more TODOs.Pietro Gagliardi
2014-04-02Fixed odd Listbox sizing on Windows. (Windows by default sizes List Box ↵Pietro Gagliardi
controls so that partial items are not visible.)
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-04-01Made the sysData.make() change from the previous commit on the Windows backend.Pietro Gagliardi
2014-03-29Implemented Area.SetSize() on Windows.Pietro Gagliardi
2014-03-24Started the Windows implementation of Area.Pietro Gagliardi
2014-03-12Separated file creation dates from the package comment.Pietro Gagliardi
2014-03-12Added indeterminate ProgressBar code on Windows and fixed up a few other ↵Pietro Gagliardi
things along the way.
2014-03-12Gave Listboxes a border on Windows by implementing the subset of ↵Pietro Gagliardi
LBS_STANDARD we want, not just WS_VSCROLL. This will also allow us to have selection changed events later.
2014-03-11Removed error returns from Combobox.Delete(), Listbox.Delete(), and ↵Pietro Gagliardi
sysData.delete(), since they are no longer used. Updated the TODO file to mark this issue closed.
2014-03-10Fixed compiler errors in the previous few commits.Pietro Gagliardi
2014-03-10Removed error returns from sysData.setText() now that we no longer care.Pietro Gagliardi
2014-03-10Changed Windows sysData.setText() to panic on error. WM_SETTEXT's ↵Pietro Gagliardi
documentation indicates the main error is memory exhausted, which means we should panic anyway (unless the Go runtime already has). Any other error will be flagged as unexpected; since we're using SetWindowText() we can't differentiate between out of memory and other errors in the way WM_SETTEXT documents anyway.
2014-03-09Removed now-unused error returns from sysData.show() and sysData.hide().Pietro Gagliardi
2014-03-09Split sysData.show() into separate show() and firstShow() to accomodate ↵Pietro Gagliardi
Windows's differing rules for first-time window show; this will also allow me to remove the error returns from sysData.show() and sysData.hide() (later).
2014-03-09Steamrolled errors under panic() in Combobox/Listbox.Append()/InsertBefore() ↵Pietro Gagliardi
because screw Windows being different.
2014-03-08Added the Windows implementation of Combobox/Listbox.Len().Pietro Gagliardi