Re: CreateDialog Pecularity
- To: mathgroup at smc.vnet.net
- Subject: [mg87356] Re: CreateDialog Pecularity
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Tue, 8 Apr 2008 05:39:23 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <fta9j5$e72$1@smc.vnet.net>
David Park wrote:
> I often like to use CreateDialog as an easy way to put material up in a
> window even through there is no active 'dialog'. However there is a strange
> feature in which if one makes the window floating then it also appears to
> become Modal, even if Modal is set to False.
>
> CreateDialog[
> "Does Modal depend on the WindowFloating option?\nThis has \
> WindowFloating \[Rule] False\nTry to evaluate another cell in the \
> notebook",
> WindowFrame -> "Normal",
> WindowElements -> {"MagnificationPopUp", "HorizontalScrollBar",
> "VerticalScrollBar"},
> WindowFrameElements -> {"CloseBox", "ZoomBox", "MinimizeBox",
> "ResizeArea"},
> WindowTitle -> "Create Dialog Test",
> WindowFloating -> False];
>
> CreateDialog[
> "Does Modal depend on the WindowFloating option?\nThis has \
> WindowFloating \[Rule] True\nTry to evaluate another cell in the \
> notebook",
> WindowFrame -> "Normal",
> WindowElements -> {"MagnificationPopUp", "HorizontalScrollBar",
> "VerticalScrollBar"},
> WindowFrameElements -> {"CloseBox", "ZoomBox", "MinimizeBox",
> "ResizeArea"},
> WindowTitle -> "Create Dialog Test",
> WindowFloating -> True,
> Modal -> False];
>
> 1 + 1
>
> Try to evaluate the last statement with the two different CreateDialog
> statements.
FWIW,
David, I did not encounter any problem with the code above. Indeed, I
created several instances of both type of dialog boxes, going back and
forth to the notebook and the windows and evaluation some other
expressions. I used Mathematica 6.0.2 for Mac OS X 10.5.2 64-bit. I
would bet that the issue is platform and version dependent, though this
is not of great help!
Best regards,
-- Jean-Marc