Pietro Gagliardi
|
77bf566ebb
|
...in with the new.
|
2014-08-30 23:02:02 -04:00 |
Pietro Gagliardi
|
155899c65e
|
Out with the old...
|
2014-08-30 23:01:08 -04:00 |
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
|
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
|
ad8a90ec7e
|
More go fmt.
|
2014-06-10 14:49:54 -04:00 |
Pietro Gagliardi
|
41085768e7
|
Made the application-modal sentinel in dialog.go non-nil to prevent weird behavior on nil Windows in program code. Thanks to xtg in the Gopher Academy Slack for corroborating.
|
2014-06-08 13:00:21 -04:00 |
Pietro Gagliardi
|
bb6de0de48
|
Cleaned up dialog documentation.
|
2014-06-08 12:56:04 -04:00 |
Pietro Gagliardi
|
641d11c6fe
|
Implemented the new MsgBox()/MsgBoxError() behavior on Windows.
|
2014-06-08 08:50:52 -04:00 |
Pietro Gagliardi
|
7cb8fc1e32
|
Woo yeah it's another API change to MsgBox()! This splits parent out and makes it a receiver of MsgBox() and MsgBoxError() for the case when you want to show modal to a specific window only. These will eventually return channels, but first I'll need to igure out how to get this working...
|
2014-06-08 08:17:47 -04:00 |
Pietro Gagliardi
|
125cc7d477
|
Figured out what happens if a message box is created for an invisible window, documented it was undefined (Windows and GTK+ behave reasonably but at least Windows is not documented here; Mac OS X shows a sheet attached to invisible where the titlebar should be and then considers the window closed), and added the panic() checks for uncreated Windows.
|
2014-06-05 03:09:02 -04:00 |
Pietro Gagliardi
|
60f3c1b24f
|
Verified resize differences on MsgBox() with a parent.
|
2014-06-05 01:03:37 -04:00 |
Pietro Gagliardi
|
4e6f6cd147
|
More TODOs.
|
2014-06-04 23:16:27 -04:00 |
Pietro Gagliardi
|
7ee05f8263
|
Added the concept of transience to MsgBox() and MsgBoxError(). Individual implementations will come next.
|
2014-06-04 23:12:56 -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
|
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 |