diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-02 17:12:10 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-02 17:12:10 -0400 |
| commit | 74c851754c52adf74e611bc1533c8eb481439d84 (patch) | |
| tree | 570e882319e45a13dc7cb0cbc2c2abfd615d6074 /dialog_windows.go | |
| parent | a1150fb9eabe496eb20da7db8e5f4ecad2dba7d1 (diff) | |
Gave message boxes on Windows the MB_TASKMODAL style, which does event modality to the other windows in the program. Does not affect resizes.
Diffstat (limited to 'dialog_windows.go')
| -rw-r--r-- | dialog_windows.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dialog_windows.go b/dialog_windows.go index ab1c2dd..9d529a5 100644 --- a/dialog_windows.go +++ b/dialog_windows.go @@ -21,6 +21,7 @@ func _msgBox(primarytext string, secondarytext string, uType uint32) (result int if secondarytext != "" { text += "\n\n" + secondarytext } + uType |= _MB_TASKMODAL // make modal to every window in the program (they're all windows of the uitask, which is a single thread) ret := make(chan uiret) defer close(ret) uitask <- &uimsg{ |
