Resize GUI to fit a new object

1 Ansicht (letzte 30 Tage)
Scott Feltman
Scott Feltman am 16 Jul. 2019
Kommentiert: Scott Feltman am 16 Jul. 2019
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 Kommentar
Scott Feltman
Scott Feltman am 16 Jul. 2019
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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Graphics Object Programming finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by