Resize GUI to fit a new object

조회 수: 3 (최근 30일)
Scott Feltman
Scott Feltman 2019년 7월 16일
댓글: Scott Feltman 2019년 7월 16일
I have a GUI where I want to be able to compare two pictures on two sets of axes (the GUI starts off with only one axis.) The second axis is added on a click to select the second file, and the GUI should resize to fit the new axis in the GUI. Then, when I remove that axis, the GUI should resize to fit the original objects. I've been trying the SizeChangedFcn and looking at similar questions but they haven't seemed to help me.
  댓글 수: 1
Scott Feltman
Scott Feltman 2019년 7월 16일
I think I found a solution. All I did was modify the 'Position' property of the GUI and made it resize on the click. If anyone did it differently I'd be happy to read about that as well.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by