Last active
June 20, 2017 20:33
-
-
Save davecra/20269608b9e74100a8ec7b1e6671f163 to your computer and use it in GitHub Desktop.
How to call a MessageBox using officejs.dialogs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MessageBox.Reset(); | |
MessageBox.Show("This is a test with a lot of text that simply has not point but to show you what " + | |
"happens when you place a lot of text in a MessageBox for any point other than to " + | |
"place a whole lot of text in the MessageBox.", | |
"This is the Caption", | |
MessageBoxButtons.AbortRetryCancel, | |
MessageBoxIcons.Stop, | |
true, "Check this if you want me to stop nagging you.", | |
function(buttonPressed, checked) { | |
console.log("The button pressed was: " + buttonPressed); | |
console.log("The checkbox was checked? " + checked); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment