Commit Graph

26 Commits

Author SHA1 Message Date
Pietro Gagliardi 8a81650b3d Moved it all back; the preemptive multitaksing during an event handler kills us on all platforms. Going to have to restrict ALL GUI accss to happening from one t hread, so going to need to drop uitask entirely and have just a start() callback for startup code and a post() function for posting requests to windows (like channel sends but into a perpetual buffer). 2014-07-02 22:53:03 -04:00
Pietro Gagliardi 5d339e656b Moved everything out of the way pending rewrite. 2014-07-02 17:13:40 -04:00
Pietro Gagliardi ffa1bbe0b9 Restored the previous new API. I'm going to change it so that events are callbacks rather than using a window handler, but other than that... yeah. 2014-06-30 22:48:12 -04:00
Pietro Gagliardi 33155f7496 Reverted everything back to the old API. 2014-06-30 09:57:44 -04:00
Pietro Gagliardi affc65a5a4 Fixed the build. New API works on Windows! Also removed TODO on dialogs in Windows since I can't reproduce the weird behavior anymore; I guess the new code fixes it. 2014-06-28 16:37:55 -04:00
Pietro Gagliardi d14ee7f3dd Fixed the implementation of sysData.center() on Windows to be thread-safe; also added center() to the _xSysData interface. 2014-06-11 10:01:55 -04:00
papplampe 4fa35b2239 added Center function to window 2014-06-11 11:41:31 +02:00
Pietro Gagliardi 7b2e6b7fa3 Made adjustments to the output of windowsconstgen to please go fmt. 2014-06-10 09:46:00 -04:00
Pietro Gagliardi ef3adffd54 Fixed the Windows 7 progressbar animation dumbness. 2014-06-07 23:27:38 -04:00
Pietro Gagliardi 77fdd9d1c3 Documented window switch clicks in Area and implemented them on Windows and Mac OS X. 2014-06-07 04:19:37 -04:00
Pietro Gagliardi dcefa88a04 Fixed incorrect numpad handling on Windows Areas. 2014-06-07 00:46:47 -04:00
Pietro Gagliardi 4856790299 Fixed the standard window class focus behavior on Windows from the previous commit to work. Also updated the SetFocus() call in area_windows.go to boot and removed the relevant TODO after checking both wine and Windows XP work fine. 2014-06-06 01:49:23 -04:00
Pietro Gagliardi 00ec85dee6 Implemented code to save and restore control focus on Windows properly when switching away from/back to our program. It's disabled for now though because it doesn't seem to work... 2014-06-05 23:27:17 -04:00
Pietro Gagliardi bb44712fad Changed Checkbox on Windows to use BS_CHECKBOX instead of BS_AUTOCHECKBOX; 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-05 18:28:40 -04:00
Pietro Gagliardi 7acc70c39e Implemented the new MsgBox() transience on Windows. 2014-06-04 23:28:43 -04:00
Pietro Gagliardi c3a87ab713 Resolved the ACTCTX_FLAG_SET_PROCESS_DEFAULT TODO by deciding to enable this flag for maximum safety. Also added more future plans. 2014-06-04 19:30:19 -04:00
Pietro Gagliardi 74c851754c Gave message boxes on Windows the MB_TASKMODAL style, which does event modality to the other windows in the program. Does not affect resizes. 2014-06-02 17:12:10 -04:00
Pietro Gagliardi 4a66f1467b Moved the standard window class (for Window) on Windows to get the sysData 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-30 17:59:29 -04:00
Pietro Gagliardi 78c909cc9b Added GetWindowLongPtr()/SetWindowLongPtr() generation to the windowsconstgen tool and the pregenerated files. This will be needed for when we get rid of creating a new window class for each Window/Area. Also did some minor cleanup to the windowsconstgen tool. 2014-05-30 14:02:57 -04:00
Pietro Gagliardi 055cd36b20 Added the new Modifiers handling to the Windows backend. 2014-05-29 12:17:02 -04:00
Pietro Gagliardi 2e6254ec61 Finished migrating the Windows code to using the pregenerated constants. 2014-05-25 15:23:11 -04:00
Pietro Gagliardi 51469fffb5 Removed constants from common_windows.go. Almost done! 2014-05-25 15:09:01 -04:00
Pietro Gagliardi d6e7eda29c Removed constants from area_windows.go. I think I added a regression earlier when adding the WM_ACTIVATE exception that causes the click count to be reset... 2014-05-25 14:29:56 -04:00
Pietro Gagliardi 55c5776334 Stripped constants from dialog_windows.go. 2014-05-25 14:12:57 -04:00
Pietro Gagliardi bb6befbfa7 And merged the old events_windows.go constants into zconstants_windows_GOARCH.go. 2014-05-25 14:09:52 -04:00
Pietro Gagliardi 1f94a68432 Fixed issues handling INVALID_HANDLE_VALUE in the Windows constant generator, and built the first build with generated constants! 2014-05-25 14:04:03 -04:00