Pietro Gagliardi
|
46ba0049cb
|
Converted the Windows backend to make uitask a function that runs the func() passed into it, rather than a channel that sends the function to another dispatcher. Windows lets us, since SendMessage() will switch threads if called form another thread. This gets rid of one goroutine and makes things cleaner. Mac OS X has the same optimization avaialble (performSelectorOnMainThread:); GTK+... doesn't seem to...
|
2014-06-30 20:55:42 -04:00 |
Pietro Gagliardi
|
496df12751
|
Disabled MsgBox() on Windows for the time being; I'm going to restructure uitask to avoid needing to deal with channels and it's the only thing using uimsg now.
|
2014-06-30 20:36:30 -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
|
02d6a03ba3
|
Decided to make dialogs code-modal; will figure out how to get the behavior I want on Mac OS X - http://stackoverflow.com/questions/24468620/how-do-i-create-a-nested-run-loop-after-nsalert-beginsheetmodalforwindow-tha - Now to see if Windows works...
|
2014-06-28 16:02:50 -04:00 |
Pietro Gagliardi
|
3fbf746682
|
Added rewrite of most of the dialog system for the new API. The Windows API is, however, getting in the way...
|
2014-06-28 09:37:31 -04:00 |
Pietro Gagliardi
|
17a6c94e90
|
Revert all changes to dialog_windows.go because it's interfering with my fixup of sysdata_windows.go.
|
2014-06-12 11:09:56 -04:00 |
Pietro Gagliardi
|
645893ea59
|
Made the new dialog_windows.go not hang up uitask.
|
2014-06-12 09:57:50 -04:00 |
Pietro Gagliardi
|
29e5384b2e
|
Migrated dialog_windows.go to use func() for uitask.
|
2014-06-12 09:51:29 -04:00 |
Pietro Gagliardi
|
ad8a90ec7e
|
More go fmt.
|
2014-06-10 14:49:54 -04:00 |
Pietro Gagliardi
|
641d11c6fe
|
Implemented the new MsgBox()/MsgBoxError() behavior on Windows.
|
2014-06-08 08:50:52 -04:00 |
Pietro Gagliardi
|
e1c4e7d655
|
Decided not to change the default window title of a MsgBox() on Windows for now. If I change my mind, it's a documentaiton change =P
|
2014-06-05 11:03:18 -04:00 |
Pietro Gagliardi
|
7acc70c39e
|
Implemented the new MsgBox() transience on Windows.
|
2014-06-04 23:28:43 -04:00 |
Pietro Gagliardi
|
ea95d5559d
|
Migrated dialog_windows.go to the new string handling.
|
2014-06-03 11:00:29 -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
|
55c5776334
|
Stripped constants from dialog_windows.go.
|
2014-05-25 14:12:57 -04:00 |
Pietro Gagliardi
|
304995b372
|
Decided not to show an icon in the regular MsgBox() on Windows and Unix. For Mac OS X I need to see what the difference between Warning and Informational is.
|
2014-04-25 18:39:43 -04:00 |
Pietro Gagliardi
|
013e8707da
|
Removed unnecessary space if the secondaryText argument to MsgBox***() is an empty string. This doesn't change much on Mac OS X; it always shows the informational text field, showing an empty string by default. On GTK+ it seems to get rid of the bold over the primary text; I'm going to assume this is intentional (it looks that way on GTK+ 2; the HIG docs have outdated screenshots...).
|
2014-04-10 12:35:37 -04:00 |
Pietro Gagliardi
|
34ce16d586
|
Separated file creation dates from the package comment.
|
2014-03-12 21:55:45 -04:00 |
Pietro Gagliardi
|
46c992f1dc
|
Made message boxes run on uitask on Windows; adjusted some related TODOs.
|
2014-03-12 12:21:50 -04:00 |
Pietro Gagliardi
|
dd577010ca
|
More TODOs.
|
2014-03-12 12:16:44 -04:00 |
Pietro Gagliardi
|
2fb7056be4
|
Standardized message boxes so they appear similarly on all platforms. This shafts Windows because primary/secondary text message boxes were only added in Windows Vista, but at least MSDN provides discourse.
|
2014-03-12 12:14:24 -04:00 |
Pietro Gagliardi
|
fb82e651a4
|
Moved to a proper package; main() is now a test and go test -c is used to build. Once I iron out a bug with Windows event handling, I'll add a README.
|
2014-02-19 11:41:10 -05:00 |
Pietro Gagliardi
|
316e5e9db4
|
Split out the dialog functions into portable and non-portable code to keep the package documentation in the portable code only.
|
2014-02-17 02:34:58 -05:00 |
Pietro Gagliardi
|
3a99ee6569
|
Removed stray TODO left over from copy/paste.
|
2014-02-15 18:43:49 -05:00 |
Pietro Gagliardi
|
e70c6f10c5
|
Fixed a build error in the previous commit.
|
2014-02-15 16:27:47 -05:00 |
Pietro Gagliardi
|
16e561c1e3
|
Added message boxes and adjusted init() accordingly to display one on failure.
|
2014-02-15 16:27:07 -05:00 |