Path: news.mathworks.com!not-for-mail
From: "ching l" <chinglnc@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Gui Pushbutton default= off
Date: Mon, 20 Jul 2009 21:34:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 19
Message-ID: <h42ns9$kun$1@fred.mathworks.com>
Reply-To: "ching l" <chinglnc@hotmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1248125641 21463 172.30.248.38 (20 Jul 2009 21:34:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 20 Jul 2009 21:34:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1438759
Xref: news.mathworks.com comp.soft-sys.matlab:556940


Hello there, 

How do I set the pushbutton off by default?
This is what I've tried but apparently that isn't right.

-----------------------------------------------------------
function next_Callback(hObject, eventdata, handles)

handles = guidata(gcbo); 

set(hObject, 'enable', 'off') 

guidata(gcbo, handles);

------------------------------------------------------------

Please advise.

Thanks.