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

조회 수: 1 (최근 30일)
plasmageek
plasmageek 2018년 8월 30일
댓글: Adam 2018년 9월 12일
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
Sachin Meena
Sachin Meena 2018년 9월 12일
can you share your code?
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