How to place a dialog box in a GUI?
2 views (last 30 days)
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?
Walter Roberson on 10 May 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.