Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Programmatic GUI pushbutton callback
Date: Thu, 26 Jun 2008 18:43:06 +0000 (UTC)
Organization: Purdue University
Lines: 17
Message-ID: <g40nvq$96i$1@fred.mathworks.com>
References: <g40e4n$aiq$1@fred.mathworks.com> <g40jj2$f7m$1@fred.mathworks.com> <g40mb7$i96$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1214505786 9426 172.30.248.37 (26 Jun 2008 18:43:06 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 26 Jun 2008 18:43:06 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1426608
Xref: news.mathworks.com comp.soft-sys.matlab:476082




Thanks!  Between the two of you I think I have it figured 
out.  The issue is that by turning the gui script into a 
function, I have scope problems interfacing with the model 
script it has to interface with.  After talking with my 
colleagues on the project we will just use multiple custom 
functions for callbacks.

As a last question, is there any reason why I should be 
including the guidata(src,handles) style internal saves in 
these functions?  I deleted this and the "handles = get
(whatever) from the first code and it still works it 
appears.  I understand that when you are using GUIDE this 
updates the handles structure so if you are carrying 
variables they actually get changed, but if I'm just 
setting properties (i.e., visibility on and off) is this 
useful/necessary?