Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Create a dialog on top of the current notebook
ResourceFunction["NotebookBlockingDialog"][NotebookObject[…],dialog] blocks the notebook with dialog. | |
ResourceFunction["NotebookBlockingDialog"][dialog] blocks the current notebook with dialog. | |
ResourceFunction["NotebookBlockingDialog"][NotebookObject[…]] uses a default dialog. | |
ResourceFunction["NotebookBlockingDialog"]["Exit"] when used within a blocking dialog, closes that dialog. |
Create a new notebook and block it with a default dialog:
| In[1]:= |
| Out[1]= |

Create a notebook that prompts a user for a name and closes the dialog using NotebookBlockingDialog["Exit"]:
| In[2]:= | ![]() |
| Out[2]= |

Block a definition notebook with a dialog that closes the notebook:
| In[3]:= | ![]() |
| Out[3]= |
Using DefaultButton instead of NotebookBlockingDialog["Exit"] will close the entire notebook when the button is clicked:
| In[4]:= |
| Out[4]= |
Use NotebookBlockingDialog["Exit"] within DefaultButton instead:
| In[5]:= | ![]() |
| Out[5]= |
This work is licensed under a Creative Commons Attribution 4.0 International License