Path: news.mathworks.com!not-for-mail
From: "Vihang Patil" <vihang_patil@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to pause execution and continue from paused location?
Date: Wed, 16 Jan 2008 11:21:02 +0000 (UTC)
Organization: Konem Solutions
Lines: 20
Message-ID: <fmkpau$am1$1@fred.mathworks.com>
References: <fmkmko$1sm$1@fred.mathworks.com>
Reply-To: "Vihang Patil" <vihang_patil@yahoo.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1200482462 10945 172.30.248.35 (16 Jan 2008 11:21:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 16 Jan 2008 11:21:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 413701
Xref: news.mathworks.com comp.soft-sys.matlab:445938


"Denis Siponen" <nobody@nobody.com> wrote in message 
<fmkmko$1sm$1@fred.mathworks.com>...
> I'm trying to implement pause feature to my GUI. My
> objective is: When I click button with mouse, function
> associated to that button will execute. When I click that
> button again with my mouse and previous execution is
> unfinished, prorgam will pause. When I click my button
> again, it will continue execution from the point I 
halted it
> when I paused program.
> 
> Any ideas?

Hello
Probable workaround suggested, would be to make "enable" 
property of the pushbutton to be "off" till your functions 
are executing. As soon as the functions are executed you 
can turn the "enable" property to "on" again..
HTH
Vihang