|
"Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de> wrote in message <glanou$9ne$1@fred.mathworks.com>...
> Dear Mira!
> I am really confused now. You said, that the mentioned methods do not work. Are there errors? The named uimenufcn is the function, Matlab uses if you press the 1st entry of the Window menu of a figure. Are you able to activate this menu and lift the command window at least manually?!
>
> The last idea I have is ShowWindow from the Matlab FileExchange:
> http://www.mathworks.com/matlabcentral/fileexchange/3407
> This let the operating system touch the window's properties. It works for the command window as for all other windows, as long as it has a uniqe name.
>
> Finally I think, "fig(5)" is the problem. Can you try to replace this by the corresponding ShowWindow method?
> Matlab 6.5 got very confused, if parts of the Window grow outside the display area, perhaps 7.3 has similar limitations.
>
> Good luck, Jan
Dear Jan!
I tried the earlier methods several times in different positions in the code without success and without errors. It simply passed through doing nothing.
Yes, as soon as I touched any key on the keyboard the command window appears.
I downloaded showwindow function a tested it a bit a while ago:
close all
showwindow('MATLAB 7.3.0 (R2006b)','shownormal')
x = 1:10;
figure
plot(x,x.^2)
showwindow('Figure 1','shownormal')
pause(.1)
showwindow('Figure 1','maximize') % this works only after pause
pause(3) % Some "program"
% showwindow('Figure 1','minimize') % this works
showwindow('Figure 1','hide') % this works
input('number = ');
showwindow('Figure 1','maximize') % this works
% showwindow('Figure 1','restore') % this works
pause(3)
showwindow('MATLAB 7.3.0 (R2006b)','shownormal') % this doesn't work
No one attempt brought the command window to front, however, i allowed to see it and to enter data.
I thank you for your help. Even that I am working with MATLAB years, I lerned again something more. Thanks.
Best regards
Mira
|