Thread Subject: Preventing errors in order to use other buttons

Subject: Preventing errors in order to use other buttons

From: Sertan Kaya

Date: 18 Jan, 2009 00:22:02

Message: 1 of 2

 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

Subject: Preventing errors in order to use other buttons

From: Sadik

Date: 18 Jan, 2009 00:55:04

Message: 2 of 2

"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.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
gui button usage Sertan Kaya 17 Jan, 2009 19:25:06
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com