Message Boards Message Boards

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

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

Posted 11 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
Thanks Vitaliy,
MessageDialog does throw an unknown option error. Which is easily remedied, but still surprising.
Craig
POSTED BY: W. Craig Carter
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
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract