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

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit:

Window moves when menu opens

Asked by Nick Bell on 9 Oct 2012

I have a GUI that brings up a menu on pressing some buttons, and when this happens, the GUI moves to its default position on the screen, even if it has been moved. Is there a way to disable this behaviour? I have tried various searches but don't think I'm describing the problem well enough for google!


Nick Bell



No products are associated with this question.

2 Answers

Answer by Sachin on 9 Oct 2012

Probably you have not specified the positions manually for GUI using 'Position' property.


Answer by Walter Roberson on 9 Oct 2012

Possibly your callbacks for the menu are calling the GUI itself by name, causing it to re-execute the code that sets the position.


Walter Roberson

Contact us