Path: news.mathworks.com!not-for-mail
From: "Sadik " <sadik.hava@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Preventing errors in order to use other buttons
Date: Sun, 18 Jan 2009 00:55:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <gktul8$q6g$1@fred.mathworks.com>
References: <gktsna$ord$1@fred.mathworks.com>
Reply-To: "Sadik " <sadik.hava@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1232240104 26832 172.30.248.37 (18 Jan 2009 00:55:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 18 Jan 2009 00:55:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1666517
Xref: news.mathworks.com comp.soft-sys.matlab:512262


"Sertan Kaya" <sertan_kaya@yahoo.com> wrote in message <gktsna$ord$1@fred.mathworks.com>...
>  Dear All,
> 
> I have been doing a gui project in Matlab. In my project, there are several buttons which are engaged with specific tasks. In order to proceed the tasks, you have to click on buttons in a certain orders. Let's say, once you upload the image with "load image" button, you have to go with the next button so that this button can use the global variables from "load image_callback function". The way I did for this problem is enabled off all buttons except one button which is active at that time. Is there another way or better way to do this thing ? Let's say, once you have a gui, you can not start with any button. If you do that, it will give an error. Is there any way that we can get rid of this error ? 
> 
> Thanks for your time and help
> Best Regard
> Phd Student

Dear Sertan,

I don't know exactly, but if it is the usage of the handles that necessitates the disabling of the buttons, then the following link, especially Section 7 could be useful:

http://www.mathworks.com/support/tech-notes/1200/1205.html

Thanks.