Questions tagged [dialog-window]
Dialog windows are special notebook windows of the Mathematica front end.
117
questions
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 ...
13
votes
1
answer
369
views
How to make an unremovable modal window?
Is there any way to securely stick a notebook window (e.g. a dialog) on screen that it cannot be closed/removed/hidden by any of the standard OS shortcuts, like AltF4 or AltTab under Windows? The ...
11
votes
1
answer
383
views
Simple Choice-Dialog like the auto-completion popup
What I want is pretty simple, nevertheless, after half an hour I have only unsatisfying solutions here. Let me ask you who might work more often with Mathematica's GUI elements:
Is there a way to ...
10
votes
3
answers
234
views
The very bottom of CellMargins is missing
Bug introduced in 8 or earlier and persists through 12.0
Edit 16. IV 2016 I've received an answer from WRI Support:
[...] It does appear that CellMargins is not ...
10
votes
1
answer
170
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 ...
9
votes
1
answer
276
views
What really makes a Dialog window behave as a modal dialog?
CreateDialog[DefaultButton[], Modal -> True]
creates a modal Dialog, one which needs to be closed before the front-end ...
9
votes
1
answer
248
views
Authentication dialog for URLDownload / URLSave
Bug introduced in 11.0 and persists through 11.3
The original problem is was fixed in V11.2 but since then it returns File[path/to/file/that/does/not/exits] instead ...
9
votes
0
answers
128
views
How to suppress the escape window?
Cross posted here
If we first enter an empty string (""), and then paste something within the quotation marks, the following dialog box will pop up:
I recorded a ...
8
votes
2
answers
911
views
Import data from excel and store it permanently in notebook
I am trying to write the code for doing the following:
by clicking a button, import specific data from an Excel file which I select through a dialog window;
input a name for the imported data set ...
8
votes
2
answers
445
views
Strange behavior of CreateDialog's WindowSize option
Compare the two dialog windows, created by the same code except in the first WindowSize has a value while I omit it in the second one. Note, that ...
8
votes
1
answer
173
views
Inconsistent Authorization Dialog (401) handling
Bug introduced in V11 and fixed in 11.3
[CASE:3855554] was created
[...] It does appear that the URLRead is not behaving correctly. I have forwarded an incident report to our developers with ...
7
votes
1
answer
409
views
How can I remove the bottom bar from Mathematica?
There is a bar with a zoom button on it, and it takes too much room. How can I disable it?
Appreciate any help! Thank you!
7
votes
1
answer
314
views
Problems with visual update in GUI
Consider the following. When clicking in "Browse" and then choosing a file, the path will remain the original one and won't change to the one of the file I chose:
...
7
votes
1
answer
127
views
Notebooks created after prompting a Modal dialog
Bug reproduced in 10.3.1 and persisting through 11.2.0
From:
Note: Modal dialogs will prevent users from accessing other notebooks in the front end while the ...
7
votes
1
answer
246
views
Triggering events based on choices made inside of system dialogs (e.g. window close)
I'm trying to arrange for Mathematica to perform a certain action every time a notebook is saved or closed (with or without saving). The obvious way to do this would be through event handling. So, ...
6
votes
4
answers
424
views
Object isn't fully displayed in DialogInput
Update: Here's a simper example to reproduce the issue:
DialogInput[Table[InputField[], {50}], WindowSize -> All]
On my 1366×768 screen only no more than 17 <...
6
votes
2
answers
1k
views
How do I make NotebookEvaluate work inside Button?
The following creates a button to select a notebook to run. When the button is pressed it seems that Mathematica finds the notebook but cannot evaluate it. The following error occurs
Could not ...
6
votes
1
answer
242
views
How to make scrollable TogglerBar?
Consider the following TogglerBar:
...
6
votes
1
answer
530
views
Dialog inside Dynamic Module [duplicate]
The following doesn't appear to work:
DynamicModule[{}, Button["Press Me", ChoiceDialog["OK or Cancel?"]]]
When I press the button labelled "Press Me", a dialog ...
6
votes
1
answer
224
views
How to refuse close Dialog when press Esc Key
As you can see in the documentation of CreateDialog:
If the dialog contains no DefaultButton or ...
6
votes
1
answer
630
views
How to save data using FileNameSetter or similar
I would like to export data to a file using a SaveAs type dialog, using something like FileNameSetter[name,"Save"] to give a browse button.
Any help with this ...
6
votes
3
answers
185
views
How to create a window which will close in a certain amount of time?
I'm currently making an interface in Mathematica and I'll need to bump a window out and then let it close itself in a certain amount of time.
Here's an short example to illustrate the effect:
...
6
votes
1
answer
257
views
How to evaluate following inputs only after finishing CreateDialog
I have a code which starts with the following Cell:
...
6
votes
1
answer
462
views
Dialog crashes Mathematica
I have some dialog windows in a GUI of which one regularly crashes the kernel. I managed to focus on this particular piece of code, though I don't really know what causes the crash:
...
5
votes
2
answers
103
views
Creating a warning before executing a function if not cancelled?
How could I create a warning dialog that executes a function if not cancelled after a delay ? Also I would like the time remaining before execution to be displayed and the dialog to be non blocking.
5
votes
2
answers
1k
views
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?
5
votes
1
answer
259
views
Blocking dialog with a blocking child dialog
Suppose I have a DialogInput, in which there is a Button. The Button can trigger another <...
5
votes
0
answers
173
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 ...
5
votes
0
answers
102
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 ...
4
votes
1
answer
665
views
How can I create input fields based on the user's choice from a popup menu?
I'm trying to create an interface with Mathematica. However, I need some instructions concerning the code below. This is about 10% of what I have in mind, but first I need to know how can I create <...
4
votes
1
answer
104
views
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
...
4
votes
1
answer
715
views
How to perform DialogInput operation within Button
Can someone clarify how to perform a DialogInput operation within a Button?
I wrote some code for that but it's not working.
<...
4
votes
1
answer
96
views
How to get rid of the "You are pasting text into a string..." dialog or skip it?
Consider the following example:
...
4
votes
1
answer
172
views
How to use an event handler inside of a Dialog Notebook
I am designing a tank game in Mathematica for my class and currently I have a tank that can drive along a curve and shoot a point at a set angle, but I want to get all of this into some sort of pup up ...
3
votes
1
answer
474
views
Can I create a dynamic number of rows in TabView through an iteration?
I have written code, with the help of stackoverflow of course, and I want to make it user friendly so that other people in my lab can use it. I'm playing with DialogCreate and similar functions. I ...
3
votes
1
answer
266
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 ...
3
votes
3
answers
292
views
Why does my code work one way in Mathematica and another way in PlayerPro?
I wrote the following simple code and deployed it as a CDF.
Button["Ok", (SystemDialogInput["FileSave", ".PDF"])]
If I ...
3
votes
2
answers
104
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
...
3
votes
1
answer
232
views
Dialog notebook with multiple popup menus
I'm trying to create a user interface in Mathematica; the user will enter specified information, it will be processed, and then data will be inserted into a MySQL database. The pieces work ...
3
votes
1
answer
89
views
Multiple dropdown dialogs in the same window?
Consider a few dropdown dialogs:
...
3
votes
1
answer
200
views
Loading Animation in Manipulate
I'm using Manipulate together with CreateDialog to run a ListPlot whenever I click on a ...
3
votes
1
answer
258
views
Scrollbar in DialogInput
Writing:
...
3
votes
1
answer
234
views
How to omit the authentification dialog during URLRead?
When I use URLRead
Mathematica will popup a window like:
Actually I have given the parameters Password and ...
3
votes
2
answers
128
views
Automatically extend ChoiceDialog
Writing:
ChoiceDialog["I dati sui nodi sono già stati inseriti?",
{sì -> 0, no -> 1},
Magnification -> 1.5]
I get:
while ...
3
votes
1
answer
447
views
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 ...
3
votes
0
answers
100
views
What is the Kernel waiting for after DialogInput is launched?
Bug introduced in 11.0 or earlier and persisting through 11.2
[...] I was able to reproduce the issue, and consequently, I filed a report with our development team [...]
CASE:3805351
I find this ...
3
votes
0
answers
102
views
Duplex Printing from button inside DialogNotebook on Mac
All,
I have the following code which generates a window containing the variable PrintOut and a Print button. When the print button is pressed the contents of the window are sent to the printer and ...
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 ...
2
votes
1
answer
100
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 ...
2
votes
2
answers
376
views
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 :
...