2014-02-17 01:34:58 -06:00
|
|
|
// 7 february 2014
|
2014-02-19 10:41:10 -06:00
|
|
|
package ui
|
2014-02-17 01:34:58 -06:00
|
|
|
|
|
|
|
import (
|
2014-03-12 11:14:24 -05:00
|
|
|
// ...
|
2014-02-17 01:34:58 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
// MsgBox displays an informational message box to the user with just an OK button.
|
2014-03-12 11:14:24 -05:00
|
|
|
// primaryText should be a short string describing the message, and will be displayed with additional emphasis on platforms that support it.
|
|
|
|
// secondaryText can be used to provide more information.
|
|
|
|
// On platforms that allow for the message box window to have a title, os.Args[0] is used.
|
|
|
|
func MsgBox(primaryText string, secondaryText string) {
|
|
|
|
msgBox(primaryText, secondaryText)
|
2014-02-17 01:34:58 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
// MsgBoxError displays a message box to the user with just an OK button and an icon indicating an error.
|
2014-03-12 11:14:24 -05:00
|
|
|
// Otherwise, it behaves like MsgBox.
|
|
|
|
func MsgBoxError(primaryText string, secondaryText string) {
|
|
|
|
msgBoxError(primaryText, secondaryText)
|
2014-02-17 01:34:58 -06:00
|
|
|
}
|