From: ImageAnalyst on
Why don't you just write a function called

function handles = ResetGUI(handles)
% Code to reset various controls to known states
% For example set scrollbar values to known initial values.
return; % from ResetGUI()

and put all your code in there to reset whatever you want to reset.

Then just call ResetGUI from your opening function, or whatever other
function you want to call it from. Call it whenever and wherever you
like.
From: Philip on
ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <54180260-bfc3-47f4-8364-59a841c73bfd(a)p2g2000yqh.googlegroups.com>...
> Why don't you just write a function called
>
> function handles = ResetGUI(handles)
> % Code to reset various controls to known states
> % For example set scrollbar values to known initial values.
> return; % from ResetGUI()
>
> and put all your code in there to reset whatever you want to reset.
>
> Then just call ResetGUI from your opening function, or whatever other
> function you want to call it from. Call it whenever and wherever you
> like.

not a bad idea, problem is I have a lot of different handles reset, which cannot be done unless i set them all up as the output of the bunch.