MATLAB: Use button in one gui to enable button in second gui

getappdataguimultiple guisetappdata

I've found lots of solutions regarding sharing information between separate GUIs, and I've gotten pretty good at that, but that requires saving in one, then opening in another. This issue I'm having is a little different-
I have 2 GUIs- guiA and guiB. guiA has buttons that move a highlight square around an axes-picture, but each one pops up guiB with varied information. What I'm trying to do is disable the movement buttons on guiA whenever one is clicked so they can't ignore guiB when it pops up. Then when they click the button on guiB, guiB closes and the buttons on guiA re-enable.
Thanks for your assistance!

Best Answer

It would probably make more sense to make the second GUI modal. You do that by setting the figure WindowStyle property to 'modal'