MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

CreateDialog Pecularity

  • To: mathgroup at smc.vnet.net
  • Subject: [mg87272] CreateDialog Pecularity
  • From: "David Park" <djmpark at comcast.net>
  • Date: Sun, 6 Apr 2008 06:42:50 -0400 (EDT)

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.

-- 
David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/




  • Prev by Date: Re: Inconsistent behavior?
  • Next by Date: Re: Re: How to put text on a curved surface?
  • Previous by thread: Re: Interpretation with If
  • Next by thread: Re: CreateDialog Pecularity