Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!news01.roc.ny.POSTED!53ab2750!not-for-mail
From: Doug Schwarz <see@sig.for.address.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: greek symbols in GUI
References: <fg0dqh$lt9$1@fred.mathworks.com> <fg0l33$b7u$1@fred.mathworks.com> <fg1mnr$foh$1@fred.mathworks.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
User-Agent: MT-NewsWatcher/3.5.2 (Intel Mac OS X)
Message-ID: <see-5CACE8.09253028102007@71-129-133-66.dollamir.com>
Lines: 36
X-Complaints-To: abuse-news@frontiernet.net
X-Trace: 52616e646f6d4956aa8b238aa2f708cbb34fb346320b3dec7e72a8441ef2a49afcf0ab3e309f04f99daba592c6ef1eec88b65a9814e7aa1aa87e2137183e8b7f4841a85a29334149dbd0091a1d6f409548ace221ba0587e30faaa246fedc628dda681453a969ecb57317987553a9b935
X-Abuse-Info: Please be sure to forward ALL headers so that we may process your complaint properly.
NNTP-Posting-Date: Sun, 28 Oct 2007 13:25:31 UTC
Date: Sun, 28 Oct 2007 13:25:31 GMT
Xref: news.mathworks.com comp.soft-sys.matlab:434925


In article <fg1mnr$foh$1@fred.mathworks.com>,
 "Jonas " <joslaa02@student.umu.se> wrote:

> "Dan " <dpcore@yahoo.com> wrote in message <fg0l33
> $b7u$1@fred.mathworks.com>...
> > "Jonas " <joslaa02@student.umu.se> wrote in message 
> > <fg0dqh$lt9$1@fred.mathworks.com>...
> > > Hello, I'm building a GUI and I like to know how to get 
> a 
> > > greek symbol for example in a static text or in a push 
> > > button. I'd then like to write
> > > 
> > > set(handles.static_text,'String','\alpha')
> > > 
> > > to display the greek letter alpha but this doesn't 
> work. 
> > > Thanks!
> > 
> > There is a submission on the file exchange for doing this 
> > at http://www.mathworks.com/matlabcentral/fileexchange/
> > loadFile.do?objectId=10743&objectType=file
> > 
> > Dan
> 
> Yes, that is one way to do it, although it is easy to run 
> the function i wonder if there is a simpler way to do it?


If all you want is Greek letters then you can just use the Symbol font:

  set(handles.static_text,'String','a','FontName','symbol')

-- 
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.