Questions tagged [dialog-window]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
69 views

How to resolve the following problem with DialogInput/PopupMenu?

Consider the following DialogInput: ...
John Taylor's user avatar
  • 4,984
6 votes
1 answer
238 views

How to make scrollable TogglerBar?

Consider the following TogglerBar: ...
John Taylor's user avatar
  • 4,984
2 votes
1 answer
49 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
  • 4,984
1 vote
1 answer
83 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
  • 4,984
1 vote
1 answer
50 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
88 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
  • 4,984
2 votes
1 answer
80 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,688
4 votes
1 answer
85 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
  • 21.6k
0 votes
1 answer
63 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
  • 153
2 votes
1 answer
88 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
  • 411
1 vote
0 answers
36 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
55 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,473
0 votes
0 answers
33 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
41 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,087
1 vote
0 answers
41 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
35 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
67 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
55 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
  • 71
1 vote
1 answer
105 views

How to use CreateDialog in .wls file

I have following code, which can run in notebook. ...
AsukaMinato's user avatar
  • 8,260
1 vote
1 answer
51 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
  • 559
4 votes
0 answers
148 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
68 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,457
3 votes
1 answer
195 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,187
5 votes
0 answers
99 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,061
1 vote
0 answers
29 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
1k 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
133 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,003
0 votes
0 answers
70 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,003
2 votes
1 answer
50 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,381
1 vote
1 answer
46 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
  • 559
3 votes
2 answers
100 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,003
0 votes
1 answer
44 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,349
1 vote
0 answers
33 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
86 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
  • 68k
0 votes
0 answers
60 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
169 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,415
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
128 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,027
3 votes
1 answer
252 views

Scrollbar in DialogInput

Writing: ...
πρόσεχε's user avatar
3 votes
2 answers
127 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
66 views

Error with Subscript in DialogInput

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

Problem with DialogInput and store variable

Writing: ...
πρόσεχε's user avatar
0 votes
0 answers
34 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
88 views

Error about CreateDialog

Writing: ...
πρόσεχε's user avatar
0 votes
0 answers
251 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
42 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
1 vote
0 answers
194 views

Executable notebooks

Last week I made a code, where I use dialogboxes do create a graphic interface. I want this code to be available to any person that might have or not Mathematica. Is there a way to turn this notebook ...
RicardoP's user avatar
0 votes
1 answer
313 views

How to add a picture inside a dialog box

I looked around the documentation, but didn't found anything that could help me add a picture in a dialogbox. I actually didn't know what should I have been looking for. Furthermore, if it is possible ...
RicardoP's user avatar
3 votes
1 answer
256 views

Better alternatives for GUIkit or dialogboxes?

I'm trying to create a custom interface, where I input equivalent electrical resistances which were previously measured, so I can solve a system of 8 non linear equations using FindRoot to get the ...
RicardoP's user avatar
1 vote
1 answer
103 views

Using tab in a dialog box

I'm doing a program in mathematica with which I have custom interface where I input some previously measured equivalente resistances and calculate the actual resistance, by solving a 8 nonlinear ...
RicardoP's user avatar