Message Boards Message Boards

2 Replies
1 Total Likes
View groups...
Share this post:

MessageDialog: Modal is not an option, but does affect behavior

Posted 12 years ago
This puzzles me:

Direct cut-and-paste from documentation works as expected:
MessageDialog[{x^3, Graphics[Disk[], ImageSize -> Tiny]}];
However, I am attempting to make this modal, so I tried:
MessageDialog[{x^3, Graphics[Disk[], ImageSize -> Tiny]}, Modal -> True];
Modal->True is syntax-colored as if it is not a valid option, and the command throws a warning:

"OptionValue::nodef: "Unknown option \!\(\"Modal\"\) for MessageDialog."

However, the dialog window behaves as a Modal dialog.  This is on a Mac M9.0. I'm happy that this works for me, but am curious if this behavior will be the same on other operating systems or in future releases.
POSTED BY: W. Craig Carter
2 Replies
The "Modal -> True" option behavior for MessageDialog is correct. We are aware of the other stuff, but any way thanks for bringing it to our attention. For now you can just ignore the messages and red font, because the actual behavior is correct.
POSTED BY: Vitaliy Kaurov
Thanks Vitaliy,
MessageDialog does throw an unknown option error. Which is easily remedied, but still surprising.
POSTED BY: W. Craig Carter
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract