summaryrefslogtreecommitdiff
path: root/sysdata_windows.go
AgeCommit message (Collapse)Author
2014-02-24Set the default control font on Windows to the expected standard font ↵Pietro Gagliardi
instead of to the default System font.
2014-02-19Moved to a proper package; main() is now a test and go test -c is used to ↵Pietro Gagliardi
build. Once I iron out a bug with Windows event handling, I'll add a README.
2014-02-17Fixed the GTK+ crashes (I think) by making resizes synchronous. Since all ↵Pietro Gagliardi
control resizes happen on the UI thread anyway, we don't need to dispatch back; just call the resizing functions directly. Windows gets this fix too for consistency (and also because it gets rid of the only asynchronous oddity in the system).
2014-02-15Added Listbox.Selection() and Listbox.SelectedIndices(). Also fixed a bug ↵Pietro Gagliardi
involving sysData.selectedIndices() with nothing selected.
2014-02-15Added Combobox.SelectedIndex().Pietro Gagliardi
2014-02-15Added Combobox.Delete() and Listbox.Delete() and added some TODOs.Pietro Gagliardi
2014-02-15Added vertical scroll bars to Combobox.Pietro Gagliardi
2014-02-15Made sure sysData.selectedIndices() returns an empty slice if nothing was ↵Pietro Gagliardi
selected in a single-selection listbox.
2014-02-15More error handling reduction.Pietro Gagliardi
2014-02-15Reduced the number of unnecessary error returns based on MSDN. The TODOs ↵Pietro Gagliardi
that used to be there have been moved to a new file; similar files for Mac and Linux will also be made.
2014-02-15Resolved some more TODOs... though resolving the rest in this file is going ↵Pietro Gagliardi
to be fun...
2014-02-15Removed setting the initial width and height in sysData.make() (this gets ↵Pietro Gagliardi
rid of the dummy 300x300 sizes from the controls) and added an explicit sysData.setWindowSize() to Window.Open() to ensure everything's sized properly.
2014-02-15Added sysData.setWindowSize(), which will simplify a few things in ↵Pietro Gagliardi
Window.Open() and Control.make().
2014-02-15Fixed build errors in the previous commits.Pietro Gagliardi
2014-02-15Added combobox/listbox selection helper functions.Pietro Gagliardi
2014-02-15Added sysData.insertBefore().Pietro Gagliardi
2014-02-14Added scrollbars to Listbox.Pietro Gagliardi
2014-02-14Added Listboxes. You can't use the results just yet...Pietro Gagliardi
2014-02-14Renamed sysData.editable to sysData.alternate in preparation for ListBox.Pietro Gagliardi
2014-02-14Added labels.Pietro Gagliardi
2014-02-14Added LineEdit.Pietro Gagliardi
2014-02-14Added Combobox.Pietro Gagliardi
2014-02-13Added Checkbox.Checked().Pietro Gagliardi
2014-02-13Added checkboxes. You can't really do anything with them yet, though...Pietro Gagliardi
2014-02-13Added sizing of windows and the main window control. It presently deadlocks; ↵Pietro Gagliardi
I'll need to redo my mutexes...
2014-02-12Fixed compiler errors. New code structure success!Pietro Gagliardi
2014-02-12Adjusted sysData.make() to make the new window class and fixed main(). Now ↵Pietro Gagliardi
to fix compiler errors...
2014-02-12Windows sysData has been adjusted to deal with child controls. Rather than ↵Pietro Gagliardi
storing the parent window, it is passed as an argument to sysData.make(), which does the child ID allocation. Child IDs are now window-local, getting rid of that restriction.
2014-02-12Added Window.SetTitle(). Also oops, forgot to mark the window as created.Pietro Gagliardi
2014-02-12Added buttons.Pietro Gagliardi
2014-02-12Added initial window size and the Window.SetTitle() function.Pietro Gagliardi
2014-02-12Separated initial text from sysData and fixed errors in the previous commits.Pietro Gagliardi
2014-02-12Added control ID generation.Pietro Gagliardi
2014-02-11Changed the sysData cache so that if we didn't fill it in yet, getSysData() ↵Pietro Gagliardi
returns nil instead of panicking, and the standard window procedure jumps directly to the default handler. Not what I originally wanted to do, but whatever, it finally works!
2014-02-11Derp me, more incorrect error checking! But now a window shows, and the ↵Pietro Gagliardi
process hangs, so progress!
2014-02-11It appears the result of syscall.StringToUTF16Ptr() is only temporary, so ↵Pietro Gagliardi
removed all that. Now the program just hangs...
2014-02-11Changed the caching such that the window procedure is held until we added ↵Pietro Gagliardi
the HWND to the cache. Now we have a mysterious class not regsitered issue...
2014-02-11More of the previous error and not printing panics... derp me. Still not ↵Pietro Gagliardi
fixed yet though...
2014-02-11All build errors resolved. Now to test...Pietro Gagliardi
2014-02-11More error corrections; not done yet...Pietro Gagliardi
2014-02-11Added the window creation code. Now let's hope this works...Pietro Gagliardi
2014-02-11Migrated over the window class and window procedure stuff, set up the ↵Pietro Gagliardi
standard window class, and wrote the skeleton window procedure.
2014-02-11Set up initialization on Windows (1/2) and fixed a leftover error in ↵Pietro Gagliardi
sysdata_windows.go.
2014-02-11Started implementing the public API: added the Window and Control types and ↵Pietro Gagliardi
the skeleton of the Windows implementation.