Why are the INPUTDLG, LISTDLG, QUESTDLG, FINISHDLG and all other modal dialog GUI's sometimes partially hidden when displayed on the MATLAB desktop?
This occurs in both MATLAB 6.0 (R12) and MATLAB 6.1 (R12.1) on Windows.
Using the input dialog box "INPUTDLG", a list dialog box "LISTDLG", or a question dialog box "QUESTDLG" sometimes results in partially hidden and corrupted dialog boxes. The problem is not consistent, but tends to occur when the MATLAB desktop is not minimized or maximized (i.e. MATLAB only partially covers the Windows desktop).
To reproduce this behavior, use the following code:
a = inputdlg({'hi'})
or:
d = dir;str = {d.name};[s,v] = listdlg('PromptString','Select a file:',...'SelectionMode','single',...'ListString',str)
Note that if the dialog box covers the title bar in MATLAB, the response seems even more likely.
Best Answer