Path: news.mathworks.com!not-for-mail
From: Loren Shure <loren@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: GUIs:  GUIDE vs Code Only
Date: Fri, 25 Aug 2006 10:54:24 -0400
Organization: The MathWorks
Lines: 27
Message-ID: <ecn2v0$665$1@fred.mathworks.com>
References: <ef3f3e7.-1@webcrossing.raydaftYaTP>
Reply-To: loren@mathworks.com
NNTP-Posting-Host: shurel.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1156517664 6341 144.212.219.73 (25 Aug 2006 14:54:24 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 25 Aug 2006 14:54:24 +0000 (UTC)
User-Agent: Thunderbird 1.5.0.5 (Windows/20060719)
In-Reply-To: <ef3f3e7.-1@webcrossing.raydaftYaTP>
Xref: news.mathworks.com comp.soft-sys.matlab:366566



Jeremy Smith wrote:
> What are the pros and cons of creating GUIs (graphical user
> interfaces) with GUIDE and programmatically (code only)?
> 
> For either method, what are the pros and cons of using the switchyard
> approach to functions vs function handles? When I speak of
> switchyard I mean calling one function with a switch and a number of
> cases to execute the proper function.
> 
> A bit about me and why I asked these questions:
> I've been programming GUIs for a year now and I see people mostly
> discussing GUIDE methods. After using GUIDE for a bit I grew to hate
> it. The GUI based programs in Matlab I've used (and reverse
> engineered) and been able to find code for all seem to be done using
> the programmatic method. This is why I would like to know why you
> use the methods you use.
> 
> Thanks in advance for your replies.

Personally, I generally program them but use GUIDE to help me tweak the 
layout.  Here's an article I wrote on using nested functions, including 
a discussion of some of the pros.  It includes a link to code you can 
download.

-- 
--Loren
http://blogs.mathworks.com/loren/