Dear Guillaume
For what is worth, yes, I agree that the current way to start/end SPM gui by closing *all* figures seems a bit user- and developer- unfriendly. Perhaps just changing spm_figure so that closing a figure uses 'close' instead of 'delete' would be a minimal but welcome change? That would allow developers to use closerequestfcn callbacks to decide whether their figures may be closed without warning or not, while still allowing SPM to be sure that it is deleting all of its own figures. Currently the combination of 'delete' and 'allchild' seems awfully inappropriate (pun intended) where perhaps using 'close' and/or 'findobj'/'findall' instead (with some tags to identify SPM's own figures) might be sufficient?
Best regards
Alfonso
|