MATLAB: Transition between tabs/ screens in GUI

guiMATLAB

Hi Everyone,
I've created quite a big (for me at least…) GUI. I'm using the undocumented uitab feature and then below that there are panels that are hidden or made visible to give an extra layer of screen switching. My question is this: When the user switches screens or opens up the GUI the buttons, axes, tables etc jump around and appear on the wrong screen for a second or two before it all settles down. Is there some way of stopping this happening? I'm writing the GUI myself rather than using GUIDE because the screen switching stuff I'm doing isn't possible in GUIDE (I am however laying out the individual screens in GUIDE and then exporting them but I don't see that this can be the cause). It's not the end of the world but it would be nice to stop it happening if there's an easy fix!
Thanks,
Pete

Best Answer

set() the panel visibility off while you make changes to it, then set() it on once the changes are finished: this will cause everything to render at the same time.