Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Option to disable start button

Subject: Option to disable start button

From: Stoichkov

Date: 20 Jul, 2007 09:39:44

Message: 1 of 5

Sir/Madam, Is there an option to disable/remove the lower edge of the command window that holds the start button? I don't ever use this button, nor do I read the messages that appear there (e.g. 'Ready'). I would like to be able to reclaim the screen area it occupies. admittedly, I'm talking about a mere 22 pixels here, but for some reason this bar annoys me. The same holds for the lower 22 pixels of the editor. i would like to disable that too. Regards, Stoichkov

Subject: Option to disable start button

From: Yair Altman

Date: 20 Jul, 2007 11:05:08

Message: 2 of 5

"Stoichkov " <nomailaddress@supplied.com> wrote in message <f7pvt0$1nm$1@fred.mathworks.com>...
> Sir/Madam, Is there an option to disable/remove the lower edge of the command window that holds the start button?

The following works on Matlab 7+ but is undocumented and unsupported and might change in any future Matlab release:

com.mathworks.mde.desk.MLDesktop.getInstance.getMainFrame.getStatusBar.getParent.setVisible(0);

Yair Altman
http://www.ymasoftware.com

Subject: Option to disable start button

From: Stoichkov

Date: 21 Jul, 2007 08:21:10

Message: 3 of 5

Dear Yair Altman, Thanks a lot for your solution. I added the command to my startup.m. I was not aware that Java-commands could be issued from the Matlab command line. How did you manage to figure this one out? Is there an overview of Matlab Java-commands somewhere on the web? Sincerely, Stoichkov

"Yair Altman" <altmanyDEL@gmailDEL.comDEL> wrote in message <f7q4t4$52j$1@fred.mathworks.com>...
> "Stoichkov " <nomailaddress@supplied.com> wrote in message <f7pvt0$1nm$1@fred.mathworks.com>...
> > Sir/Madam, Is there an option to disable/remove the lower edge of the command window that holds the start button?
>
> The following works on Matlab 7+ but is undocumented and unsupported and might change in any future Matlab release:
>
> com.mathworks.mde.desk.MLDesktop.getInstance.getMainFrame.getStatusBar.getParent.setVisible(0);
>
> Yair Altman
> http://www.ymasoftware.com
>

Subject: Option to disable start button

From: Yair Altman

Date: 21 Jul, 2007 18:18:34

Message: 4 of 5

> I was not aware that Java-commands could be issued from the Matlab command line. How did you manage to figure this one out?

Plain old detective work, lots of trial-and-error, digging around in Matlab's m-files for hints, common sense, much frustrations etc. - no easy way I'm afraid...

> Is there an overview of Matlab Java-commands somewhere on the web?

All this is very deep in undocumented territory, I'm afraid. The Matlab-to-Java interface is described here: http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f44062.html. However, all the internal Java classes/interfaces of Matlab remain undocumented, as well as the Java-to-Matlab interface. For a reason I don't fully understand, MathWorks elects to downplay the Matlab-Java interoperability. Look around in my Java-related submissions on the File Exchange for some information.

Matlab is really exciting - there's an endless list of undocumented nooks and crannies - Java is just one of these areas (admittedly one of the biggest)...

Yair Altman

Subject: Option to disable start button

From: Ravi

Date: 2 Mar, 2014 00:48:11

Message: 5 of 5

"Yair Altman" wrote in message <f7q4t4$52j$1@fred.mathworks.com>...
> "Stoichkov " <nomailaddress@supplied.com> wrote in message <f7pvt0$1nm$1@fred.mathworks.com>...
> > Sir/Madam, Is there an option to disable/remove the lower edge of the command window that holds the start button?
>
> The following works on Matlab 7+ but is undocumented and unsupported and might change in any future Matlab release:
>
> com.mathworks.mde.desk.MLDesktop.getInstance.getMainFrame.getStatusBar.getParent.setVisible(0);
>
> Yair Altman
> http://www.ymasoftware.com
>

Thank you so much Mr. Altman!! You've rescued me from the God-awful feature that the Start button down there was inextricably tied to "Alt-S", which wasn't even registered as a keyboard shortcut in the Preferences > Keyboard Shortcuts dialog, so it couldn't be overwritten, e.g. to bind the "Save" command! THANK YOU!!

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us