How can I change the position of an INPUTDLG dialog box in MATLAB 7.10 (R2010a)?

61 views (last 30 days)
When I create a dialog window with INPUTDLG, the position of the window defaults to the center of the screen. This sometimes causes the dialog window to open on top of other applications and GUIs. I would like to programmatically be able to specify the position ([left bottom width height]) of a dialog box created using INPUTDLG to avoid this behavior.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 16 Apr 2010
The ability to specify the position, height, and width of an input dialog box created with INPUTDLG is not available in MATLAB.
As a workaround, a custom dialog box can be created using UICONTROL. The attached sample MATLAB function below MVDLG creates a dialog box with the ability to specify the position. Please extend or modify this example as required for your custom application.

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Products


Release

R14SP1

Community Treasure Hunt

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

Start Hunting!