Borrar filtros
Borrar filtros

How to place a dialog box in a GUI?

5 visualizaciones (últimos 30 días)
Dominik Mattioli
Dominik Mattioli el 10 de Mayo de 2018
Respondida: Walter Roberson el 10 de Mayo de 2018
For all built-in MATLAB dialog box functions (errordlg, helpdlg, warndlg, etc.), can you place these dialog boxes into your GUI via guide setup? For instance, if you create an axis somewhere in your GUI, could you "plot" the dialog box into that axis?
  1 comentario
Rik
Rik el 10 de Mayo de 2018
You can of course recreate the button layout if you want to, but you could also use a relevant callback that calls the relevant function. As far as I know it is not possible to integrate them as a modal box inside an axis or figure.

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 10 de Mayo de 2018
MATLAB examines the root DefaultFigurePosition for the original coordinates... but it ignores the coordinates and instead places the dialog box in the middle of the top 1/3 of the screen.
MATLAB creates a new figure each time, unless there is an existing dialog box with the same title, in which case it reuses that figure (and if there are multiple with that title it closes all except the first.)
There is no possibility at all of placing inside an existing axes or figure.

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by