summaryrefslogtreecommitdiff
path: root/dialog_windows.go
AgeCommit message (Collapse)Author
2015-12-11LET'S GET THIS FINAL REWRITE EVER STARTEDPietro Gagliardi
2014-08-30...in with the new.Pietro Gagliardi
2014-08-30Out with the old...Pietro Gagliardi
2014-07-02Moved it all back; the preemptive multitaksing during an event handler kills ↵Pietro Gagliardi
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-02Moved everything out of the way pending rewrite.Pietro Gagliardi
2014-06-30Restored the previous new API. I'm going to change it so that events are ↵Pietro Gagliardi
callbacks rather than using a window handler, but other than that... yeah.
2014-06-30Rolled back all those changes; I'm stupid.Pietro Gagliardi
2014-06-30Converted the Windows backend to make uitask a function that runs the func() ↵Pietro Gagliardi
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-30Disabled MsgBox() on Windows for the time being; I'm going to restructure ↵Pietro Gagliardi
uitask to avoid needing to deal with channels and it's the only thing using uimsg now.
2014-06-30Reverted everything back to the old API.Pietro Gagliardi
2014-06-28Fixed the build. New API works on Windows! Also removed TODO on dialogs in ↵Pietro Gagliardi
Windows since I can't reproduce the weird behavior anymore; I guess the new code fixes it.
2014-06-28Decided to make dialogs code-modal; will figure out how to get the behavior ↵Pietro Gagliardi
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-28Added rewrite of most of the dialog system for the new API. The Windows API ↵Pietro Gagliardi
is, however, getting in the way...
2014-06-12Revert all changes to dialog_windows.go because it's interfering with my ↵Pietro Gagliardi
fixup of sysdata_windows.go.
2014-06-12Made the new dialog_windows.go not hang up uitask.Pietro Gagliardi
2014-06-12Migrated dialog_windows.go to use func() for uitask.Pietro Gagliardi
2014-06-10More go fmt.Pietro Gagliardi
2014-06-08Implemented the new MsgBox()/MsgBoxError() behavior on Windows.Pietro Gagliardi
2014-06-05Decided not to change the default window title of a MsgBox() on Windows for ↵Pietro Gagliardi
now. If I change my mind, it's a documentaiton change =P
2014-06-04Implemented the new MsgBox() transience on Windows.Pietro Gagliardi
2014-06-03Migrated dialog_windows.go to the new string handling.Pietro Gagliardi
2014-06-02Gave message boxes on Windows the MB_TASKMODAL style, which does event ↵Pietro Gagliardi
modality to the other windows in the program. Does not affect resizes.
2014-05-25Stripped constants from dialog_windows.go.Pietro Gagliardi
2014-04-25Decided not to show an icon in the regular MsgBox() on Windows and Unix. For ↵Pietro Gagliardi
Mac OS X I need to see what the difference between Warning and Informational is.
2014-04-10Removed unnecessary space if the secondaryText argument to MsgBox***() is an ↵Pietro Gagliardi
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-03-12Separated file creation dates from the package comment.Pietro Gagliardi
2014-03-12Made message boxes run on uitask on Windows; adjusted some related TODOs.Pietro Gagliardi
2014-03-12More TODOs.Pietro Gagliardi
2014-03-12Standardized message boxes so they appear similarly on all platforms. This ↵Pietro Gagliardi
shafts Windows because primary/secondary text message boxes were only added in Windows Vista, but at least MSDN provides discourse.
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-17Split out the dialog functions into portable and non-portable code to keep ↵Pietro Gagliardi
the package documentation in the portable code only.
2014-02-15Removed stray TODO left over from copy/paste.Pietro Gagliardi
2014-02-15Fixed a build error in the previous commit.Pietro Gagliardi
2014-02-15Added message boxes and adjusted init() accordingly to display one on failure.Pietro Gagliardi