Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon06.news.prodigy.com!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mail
From: "Dan K" <dkominsky@primephotonics.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: GUIs: GUIDE vs Code Only
Date: 25 Aug 2006 13:12:00 -0700
Organization: http://groups.google.com
Lines: 31
Message-ID: <1156536715.243766.47520@m73g2000cwd.googlegroups.com>
References: <ef3f3e7.-1@webcrossing.raydaftYaTP>
NNTP-Posting-Host: 206.158.106.243
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1156536727 25179 127.0.0.1 (25 Aug 2006 20:12:07 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 25 Aug 2006 20:12:07 +0000 (UTC)
In-Reply-To: <ef3f3e7.2@webcrossing.raydaftYaTP>
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.0 SRV1
Complaints-To: groups-abuse@google.com
Injection-Info: m73g2000cwd.googlegroups.com; posting-host=206.158.106.243;
Xref: news.mathworks.com comp.soft-sys.matlab:366612



Kelly wrote:
> 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.
>
> I have always written my Matlab guis by hand. Since I've never
> really used GUIDE, I can't give a good comparison between the two
> methods, but from what I've seen, GUIDE code seems needlessly long
> and messy. I also dislike that it monopolizes the UserData field,
> which I often use for my own purposes. Designing a gui by hand can
> be a little time-consuming, but I prefer that to having to keep track
> of two files for every gui (.m and .fig). Plus, as the previous
> poster mentioned, creating a gui from scratch allows you to make use
> of nested functions, which can often simplify gui code.
>
> -Kelly

What I've done with acceptable results, so far is to do most of the
development in guide and then have it export to a single m-file.
Granted the full file can be huge, but I don't have to worry about two
files or the like, and I can use guide for the graphical layout.