Questions tagged [dialog-window]

Dialog windows are special notebook windows of the Mathematica front end.

Dialog windows (or dialog boxes) are special notebook windows of the Mathematica front end. As such, they can be edited and called for programmatically, just like any other expression. Dialogs can be created with the CreateDialog function, which is a specialized version of CreateWindow[DocumentNotebook[...]], with special options. More specialized dialogs for certain tasks are available using the functions: DialogInput, Input, SystemDialogInput. The function DialogNotebook represents a dialog notebook in Mathematica.

Questions dealing with general notebook editing via the front end should use the tag or . Questions about palette notebooks should use the tag . Questions about the system dialog windows produced by the OS should use the tag or the specific OS tag (e.g. or ).

Useful links:

Example questions:

117 questions
5
votes
2 answers

After executing MessageDialog[] how can I wait for it to close before continuing

After executing MessageDialog[] how can I wait for it to close before continuing? I want to popup up a message and wait for the user to hit OK before continuing. Is there a mechanism for this?
John McGee
  • 2,538
  • 11
  • 15
4
votes
1 answer

Skip the revert dialog

When saving a file and making changes to it one can revert using File->Revert in the menu or by entering FrontEndExecute[FrontEndToken["Revert"]] before reverting a dialog window opens to ask if you are sure. I would like to skip this dialog by…
jens_bo
  • 1,804
  • 17
  • 16
3
votes
1 answer

How to use ChoiceDialog or PopupMenu with ClickPane

What I am trying to do is modify the standard ClickPane example where a list of points (pts) is added to with each click, in the following way: when a click occurs, some sort of choice window appears, and the user then clicks on one of the options.…
Gareth
  • 216
  • 2
  • 3
2
votes
1 answer

Rotate 3D Plot in CreateDialog

I'm attempting to use CreateDialog to demonstrate a 3D Plot to users who are not Mathematica-ly inclined. Unfortunately, when I try to do so, using something like this piece of code: CreateDialog[ExpressionCell[Plot3D[Sin[x + y^2], {x,…
cwstra
  • 23
  • 2
2
votes
2 answers

Why doesn't the FileNameSetter button work in my DialogInput?

I am new to Mathematica, so it's probably a small error but I can't figure it out. Here is the code : DialogInput[{TextCell["Choose your folder:"], InputField[Dynamic[x]], FileNameSetter[Dynamic[x], "Directory"], …
Stef
  • 23
  • 2
2
votes
1 answer

CreateDialog[] doesn't return its local variable

Just trying to build a dialog window for picking items from the list. However it doesn't work as expected. Here is the simplified example CreateDialog[ Table[Button["press", DialogReturn[ret = i]], {i, 1, 3}] ] then In[10]: ret Out[10]: i I…
Kirill Vasin
  • 1,235
  • 12
  • 14
2
votes
1 answer

Warning window with timer

I'm deploying a package to consumers to test out that isn't complete and ready to use yet, just so they can give me feedback on usability and do feature requests. While doing so I want it to be clear to them that this is not ready for use, so I…
Daniel
  • 115
  • 6
2
votes
1 answer

Can't select text in CreateDialog, but can select a Quantity

I'm trying to popup a window with a list of strings that I can then individually select and copy to the clipboard. Using CreateDialog I can select items formatted as a Quantity but not simple text. In the example below I can right click and copy the…
DrBubbles
  • 1,391
  • 9
  • 17
2
votes
1 answer

Error about CreateDialog

Writing: CreateDialog[{TextCell["Enter number: "], InputField[Dynamic[nm], Number], DefaultButton[DialogReturn[ret = nm]]}]; ConstantArray[0, nm]; I get: ConstantArray::ilsmn: Single or list of non-negative…
πρόσεχε
  • 4,452
  • 1
  • 12
  • 28
2
votes
1 answer

How can I shift from one window to another window?

I am building a cdf application,which has multiple screens,every screen was linked to another screen. Right now I am using CreateDialog. Are there any other options of displaying multiple screens to users?
subbu
  • 2,304
  • 1
  • 13
  • 32
1
vote
0 answers

Operating one dialog from inside another

Nested Dialogs Experiment The InsideDialog works as expected when invoked from the command line. When started as a button action inside OuterDialog, it takes a very long time to start up (many seconds). When a button is selected, the Inside dialog…
John McGee
  • 2,538
  • 11
  • 15
1
vote
1 answer

How to stop continuation if no selection made on radio button bar?

The following returns the user's choice among four items on a radio button bar, but it can also give a null return if they hit "OK" without selecting an option. How to avoid this? How to grey out the "OK" button (or there may be another way to…
ool
  • 45
  • 8
1
vote
0 answers

Behaviour of OpenerView inside a loop

OpenerView works as expected in this: OpenerView[{"This is the question", "This is the answer"}, False], Yet when I put it in a loop, it has no effect: Do[Print["hello"]; OpenerView[{"This is the question", "This is the answer"}, False], 3] The…
tell
  • 320
  • 1
  • 8
1
vote
1 answer

A question about ChoiceDialog

Consider some test list that I call LongList: LongList = Table["Some very-very long name", 300]; I would like to use ChoiceDialog to associate some parameter with an element of the list. parameter = ChoiceDialog["Choose the experiment:",…
John Taylor
  • 5,701
  • 2
  • 12
  • 33
1
vote
0 answers

Replace Mathematica icon in window title bar by an own icon

I like to run a mathematica program in a customized window, so I would like to have my own icon left to the window title of my notebook window instead of the system icon. i.e.: CreateWindow[DocumentNotebook[{TextCell["example 1"]}], WindowSize ->…
RolandW
  • 11
  • 1
1
2