|
Dear Matt,
I tried it hard to increase the window size until the menubar is out of the screen:
frame = com.mathworks.mde.desk.MLDesktop.getInstance.getMainFrame;
frame.setBounds(-4, -44, 1040, 900);
But, unfortunately, this does not increase the width to more than 780 pixels on my 1024x768 monitor. Note: 780 versus 768 ?!
No success for frame.setSize, frame.setMaximumSize, frame.reshape also.
There is the ugly behaviour of Matlab figures on Windows, which prevent setting the property 'Position' to the complete visible screen size:
figure('Position', [0, 0, 1023, 767])
Moves the figure to unexpected locations.
But this can be solved by calling the Windows-API function SetWindowPos together with the SWP_NOSENDCHANGING flag in a C-Mex. In combination with the HWND_TOPMOST flag, I got the full visible screen.
Nevertheless, I did not try to use it to resize the main frame and I do not know a solution for Linux.
Yair, we need your advice.
Jan
|