Is there a generic modal dialog for appdesigner that can be customized?

9 views (last 30 days)
Duijnhouwer on 31 Jul 2020
Commented: Randy Price on 14 Feb 2022
I like the modal uialert and uiconfirm dialogs in appdesigner.
Is there a way to make custom dialogs that behave like those (that is, stick within the bounds of the UIFigure and darken it)
I would like to make dialogs like that but be able to add custom buttons, check boxes, pulldown menus, etc to them

Answers (1)

Pranav Verma
Pranav Verma on 11 Nov 2020
Hi Duijnhouwer,
From your query I understand that you need a way in MATLAB to create a customizable dialog box. Please refer to the below link which explains the functions and examples to create a customizable dialog box:
  1 Comment
Duijnhouwer on 11 Nov 2020
Hi, Thanks for your answer but dialog creates a regular dialog.
I'm looking for the equivalent for use in the new appdesigner style.
For example, the existing command "uialert"
Creates a uialert dialog as a child of a uifigure, and is contained within the boundaries of that uifigure and disables all interaction with the children (for example buttons) of the parent uifigure until the dialog has been dealt with.
Besides uialert, there are uiconfirm, and a uiprogressdlg which look nice.
What i'm hoping for is a more generic "uidialog" function that can have any custom UI elements. For example to prompt the user to enter some numbers, or pick an item from a list, etc.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by