Skip to main content

Questions tagged [dialog-window]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
76 views

Package function doesn't plot math function when given as input

I'm new to Mathematica and I'm trying to learn to write some basic code to create a DialogInput in which the user writes the function to plot. I'd like to ...
LukeTheWolf's user avatar
3 votes
1 answer
91 views

Multiple dropdown dialogs in the same window?

Consider a few dropdown dialogs: ...
John Taylor's user avatar
  • 5,827
1 vote
1 answer
57 views

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 ...
ool's user avatar
  • 45
1 vote
0 answers
36 views

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 ...
tell's user avatar
  • 320
1 vote
0 answers
88 views

How to resolve the following problem with DialogInput/PopupMenu?

Consider the following DialogInput: ...
John Taylor's user avatar
  • 5,827
6 votes
1 answer
242 views

How to make scrollable TogglerBar?

Consider the following TogglerBar: ...
John Taylor's user avatar
  • 5,827
2 votes
1 answer
52 views

How to select only particular values from the list using dialog windows?

Consider some list: list = {"A","B","C","D"} How to select only particular values from it using a dynamic dialog window ...
John Taylor's user avatar
  • 5,827
1 vote
1 answer
99 views

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 <...
John Taylor's user avatar
  • 5,827
1 vote
1 answer
58 views

How to completely control the displayed title of a window?

I can't quite seem to find a way to accomplish this task. I want to display an image in its own window with a custom title. This code almost accomplishes the task: ...
Glenn Welch's user avatar
1 vote
1 answer
164 views

How to launch specific section of the Mathematica notebook depending on the dialog choice?

Consider some Mathematica notebook where there is some preliminary code followed by chapters, sections, and subsections that must be evaluated using the code. Say, there are ...
John Taylor's user avatar
  • 5,827
2 votes
2 answers
140 views

Enter special character in search box

Usually, I just enter special characters with the Esc key and hence am not familiar with their real code in plain text. But this seems troublesome in the search box ...
xiaohuamao's user avatar
  • 4,728
4 votes
1 answer
97 views

How to get rid of the "You are pasting text into a string..." dialog or skip it?

Consider the following example: ...
Sjoerd Smit's user avatar
  • 23.7k
0 votes
1 answer
83 views

How to automatically put the keyboard focus in the InputField of a newly created dialog window?

Suppose I want my code to pop up a dialog window containing an InputField and automatically put the keyboard focus there so it's ready and waiting to accept user ...
jjoIV's user avatar
  • 173
2 votes
1 answer
101 views

Problem With Dynamic[] in Graphics

I'm writing a little function to quickly draw some bezier-curves and lines on diagrams. The function opens a DialogInput. The user can use Locators to draw a line onto the diagram. When the user ...
kienappel's user avatar
  • 421
1 vote
0 answers
44 views

Create a dialog inside a palette

I am trying to get better at UI programming, by building a simple greeting. The user is asked to type his name in a prompt, and Mathematica will then print a greeting using his name: What is your ...
tush's user avatar
  • 375
1 vote
0 answers
57 views

In Windows Classic theme the buttons on toolbars have no borders

This is under Mathematica 13.0 and Windows 11: In Preferences, the situation is even worse: Since all those windows are Mathematica notebooks, maybe it is possible to fix them?
Anixx's user avatar
  • 3,585
0 votes
0 answers
34 views

UI from CreateDialog question

I'm trying to create a dialog box, from which a user can input one or more responses. Here's my code: ...
rhomboidRhipper's user avatar
2 votes
1 answer
43 views

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 ...
Kirill Vasin's user avatar
  • 1,245
1 vote
0 answers
43 views

Clear variables on window close

I'm using DynamicModule[{ var1, var2 }, CreateDialog[ (*some code here*) ]] In order to be able to deal with memory isolation for multiple copies of a program ...
Daniel's user avatar
  • 53
2 votes
0 answers
36 views

How to abort evaluation when clicking CancelButton in program with Dialog boxes?

If you run the following code you will notice when Cancelbutton is clicked, the output is an $Abort, but it continues running the following cells, I tried different things but no one works. I want to ...
Tania Mata Aguayo's user avatar
1 vote
0 answers
76 views

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.: ...
RolandW's user avatar
  • 11
2 votes
1 answer
56 views

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 ...
Daniel's user avatar
  • 115
1 vote
1 answer
119 views

How to use CreateDialog in .wls file

I have following code, which can run in notebook. ...
AsukaMinato's user avatar
  • 9,948
1 vote
1 answer
56 views

Association auto-populating with ChoiceDialog

While trying to use the ChoiceDialog function to populate an association, I have run into an interesting issue... ...
BOUNCE's user avatar
  • 589
7 votes
0 answers
179 views

Hide the Wolfram Cloud Activity window

I'm new to Mathematica. I use Wolfram Cloud to save my notebooks and I've enabled autosave. So, whenever I press Shift+Enter (after saving once), the notebook gets saved on the cloud. The problem is ...
Apoorv Potnis's user avatar
1 vote
0 answers
69 views

Can one force dialogs to use the textual from when using the front end?

The documentation for ChoiceDialog states that If Mathematica is run without a notebook front end, ChoiceDialog gives choices in a textual form. Indeed, one ...
vsht's user avatar
  • 3,527
3 votes
1 answer
202 views

Loading Animation in Manipulate

I'm using Manipulate together with CreateDialog to run a ListPlot whenever I click on a ...
sam wolfe's user avatar
  • 4,863
5 votes
0 answers
103 views

Restoring previous "Save Selection As..." behavior

I've just upgraded to Mathematica version 11.3 (from 8.0) under MacOS 10.11.5. I noticed that when I "Save Selection As..." or "Save Graphic As...", the pre-filled name is "Untitled" plus the ...
robjohn's user avatar
  • 1,071
1 vote
0 answers
30 views

Force dialogue box to foreground even when Mathematica is minimized

Is there a way to make dialogue boxes to come to the foreground, on top of any other non-Mathematica windows, even when Mathematica itself in running in a minimized background window? I am using ...
B Chin's user avatar
  • 11
16 votes
2 answers
2k views

Mathematica notebook opening off the screen

I have an issue with opening Mathematica notebook. I'm using Student version of Mathematica 12.0 on Windows 10. When I initiate the Mathematica or create a new document from the start page, it opens ...
M.B.'s user avatar
  • 193
0 votes
1 answer
145 views

Multiple choice ChoiceDialog?

I am looking for a dialog box that opens like a ChoiceDialog but it allows me to choose multiple items from a list and returns that list like ...
user13892's user avatar
  • 9,443
0 votes
0 answers
73 views

How to fix the alignment of Buttons in ChoiceDialog?

Consider the following example: ChoiceDialog["Pick one", {1 -> "a", 2 -> "b", 3 -> "c", 4 -> "d"}] It produces appropriately sized buttons in version ...
user13892's user avatar
  • 9,443
2 votes
1 answer
54 views

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 ...
DrBubbles's user avatar
  • 1,391
1 vote
1 answer
48 views

Use ChoiceDialog to assign value to a variable within a function

This may be a routine answer that I have overlooked, but I am stumped... If I want to write a function using ChoiceDialog, how can I use what ChoiceDialog returns (true or false) to either set a ...
BOUNCE's user avatar
  • 589
3 votes
2 answers
105 views

Why can't I execute other commands while the dialog is running?

Bug introduced in 8.0.4 or earlier and persisting through 13.1 CASE:4226661 The code is from the following video: http://www.wolfram.com/broadcast/video.php?sx=Ian%20Johnson&v=2076 ...
user13892's user avatar
  • 9,443
0 votes
1 answer
49 views

Set the ClosingSaveDialog to False

I would like to stop Mathematica from showing the "Save Changes To" dialog whenever I try to close a notebook. I tried changing this from the Option Inspector by setting the losingSaveDialog -> False ...
Patrick.B's user avatar
  • 1,511
1 vote
0 answers
35 views

How to open consecutive dialogs [closed]

I am new using mathematica so I would really appreciate your help. I want to open this dialog: ...
Lindsey's user avatar
  • 11
1 vote
1 answer
90 views

Unable to add window title in SystemDialogInput

There appears to be an option called WindowTitle for the SystemDialogInput, but it does not seem to do anything for me: ...
bill s's user avatar
  • 69.2k
0 votes
0 answers
62 views

Suggestions for how to suspend a programme, while preserving the computations, which takes several days to finish?

I have a programme that needs to run for some time (2 days more or less). I only have access to a laptop, which I must turn off at the end of the day. I thought of making my programme to export the ...
An old man in the sea.'s user avatar
10 votes
1 answer
175 views

Dialog box that "times out" if the user doesn't respond

I want to ask the user (me) to make a binary choice, but also to give myself only 5 seconds in which to respond. In the absence of a response within 5 seconds, I want my code to close the dialog box ...
Simon's user avatar
  • 1,435
0 votes
0 answers
21 views

DialogReturn evaluated too soon [duplicate]

Why does this module return 11 (as expected) when 'Accept' is clicked: ...
M. Robinson's user avatar
1 vote
1 answer
140 views

Catching "$Canceled" from SystemDialogInput [closed]

Below is a minimal example of a DynamicModule which has a button to call up a SystemDiaglogInput to allow the user to select a directory. If the user selects a directory, then the name of that ...
user6546's user avatar
  • 1,069
3 votes
1 answer
261 views

Scrollbar in DialogInput

Writing: ...
πρόσεχε's user avatar
3 votes
2 answers
130 views

Automatically extend ChoiceDialog

Writing: ChoiceDialog["I dati sui nodi sono già stati inseriti?", {sì -> 0, no -> 1}, Magnification -> 1.5] I get: while ...
πρόσεχε's user avatar
0 votes
1 answer
68 views

Error with Subscript in DialogInput

Writing: ...
πρόσεχε's user avatar
1 vote
1 answer
90 views

Problem with DialogInput and store variable

Writing: ...
πρόσεχε's user avatar
0 votes
0 answers
35 views

size of images in dialogboxes [duplicate]

I am having issues with the size of multiple images in dialog boxes. I am trying to create a dialog box that handles three images (red green and blue channels obtained by a microscope) with color and ...
Andre's user avatar
  • 161
2 votes
1 answer
89 views

Error about CreateDialog

Writing: ...
πρόσεχε's user avatar
0 votes
0 answers
267 views

Creating a dialog window

I would like to create a dialog like the one in the picture: where by default: the content of $x_1$, $y_1$, $F_{x1}$, $F_{x2}$, $M_{z1}$ is $0$; the content of $\theta_{e1}$ is disabled; the tips ...
πρόσεχε's user avatar
0 votes
0 answers
43 views

Automatically shift window focus to "Find and Replace"

I'm running 11.1 on UbuntuMate. Currently when I hit Ctl-F, the "Find and Replace" dialog window appears, but the active window remains the notebook I was in. I'd like to have Mathematica make the "...
mikemtnbikes's user avatar