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

3 ビュー (過去 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 Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by