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

3 次查看(过去 30 天)
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 个评论
Adam
Adam 2018-9-12
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.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by