Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Window moves when menu opens

2 vues (au cours des 30 derniers jours)
Nick Bell
Nick Bell le 9 Oct 2012
Clôturé : MATLAB Answer Bot le 20 Août 2021
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!

Réponses (2)

Sachin Ganjare
Sachin Ganjare le 9 Oct 2012
Probably you have not specified the positions manually for GUI using 'Position' property.

Walter Roberson
Walter Roberson le 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.

Cette question est clôturée.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by