Setting GUI Resize behavior to 'proportional' disables parts of gui....

4 vues (au cours des 30 derniers jours)
plasmageek
plasmageek le 30 Août 2018
Commenté : Adam le 12 Sep 2018
I working on a GUI for my group that utilizes being able to use the mouse button in order to move around lines. I followed this example:
https://www.mathworks.com/matlabcentral/answers/143306-how-to-move-a-plotted-line-vertically-with-mouse-in-a-gui
I recently moved to a new computer/monitor and the resolution makes it really hard to do some of the analysis. I remembered the 'proportional' option and decided to test it out. However, when using this option it makes it so the mouse movement no longer works, even if I don't resize the GUI.
My understanding of how the mouse movement works is it looks for the current mouse location and looks for a line near that location (if located within the called axes). I'm not really sure how the 'proportional' setting works, but I'm assuming it is somehow de-syncing the locations.
Any help or suggestions would be appreciated. It would be nice to be able to allow people to resize the GUI depending on their monitor situation.
  2 commentaires
Sachin Meena
Sachin Meena le 12 Sep 2018
can you share your code?
Adam
Adam le 12 Sep 2018
Selecting 'Proportional' resize behaviour will change the units of all your components to normalized, with positions in the range 0-1 so if your code is relying on numbers being in pixels or characters or any other unit then it likely will cause problems. It's hard to say without seeing the code though.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by