Setting GUI Resize behavior to 'proportional' disables parts of gui....
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Adam
il 12 Set 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.
Risposte (0)
Vedere anche
Categorie
Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!