summaryrefslogtreecommitdiff
path: root/dialog.go
diff options
context:
space:
mode:
Diffstat (limited to 'dialog.go')
-rw-r--r--dialog.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/dialog.go b/dialog.go
new file mode 100644
index 0000000..d152e78
--- /dev/null
+++ b/dialog.go
@@ -0,0 +1,17 @@
+// 7 february 2014
+package main
+
+import (
+ "fmt"
+)
+
+
+// MsgBox displays an informational message box to the user with just an OK button.
+func MsgBox(title string, textfmt string, args ...interface{}) {
+ msgBox(title, fmt.Sprintf(textfmt, args...))
+}
+
+// MsgBoxError displays a message box to the user with just an OK button and an icon indicating an error.
+func MsgBoxError(title string, textfmt string, args ...interface{}) {
+ msgBoxError(title, fmt.Sprintf(textfmt, args...))
+}