Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: greek symbols in GUI
Date: Tue, 30 Oct 2007 11:13:51 +0000 (UTC)
Organization: Lunds Tekniska H&#246;gskola
Lines: 33
Message-ID: <fg73lf$b3r$1@fred.mathworks.com>
References: <fg0dqh$lt9$1@fred.mathworks.com> <fg0l33$b7u$1@fred.mathworks.com> <fg1mnr$foh$1@fred.mathworks.com> <see-5CACE8.09253028102007@71-129-133-66.dollamir.com> <fg2lgl$ses$1@fred.mathworks.com> <see-742449.18305228102007@71-129-133-66.dollamir.com> <fg5fia$epv$1@fred.mathworks.com> <fg5tfv$7l6$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1193742831 11387 172.30.248.38 (30 Oct 2007 11:13:51 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 30 Oct 2007 11:13:51 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 694242
Xref: news.mathworks.com comp.soft-sys.matlab:435209


> You can use an undocumented feature of all Matlab
> uicontrols, which is the fact that they use underlying 
Java
> Swing controls, and these in turn accept any valid HTML
> strings. So you can do the following for example:
> 
> uicontrol
('string','<html><b>1<sub>2</sub>3<sup>4</sup>5</b></html>')
> 
> This is equivalent to the tex string '\bf1_23^45\rm'. You
> can set font faces, colors, sizes, bold/italic and any 
other
> valid HTML 3.0 property. It's limited, but should do the
> trick in most conceivable cases.
> 
> The same is true for tooltips, by the way: try setting
> multi-line (<br>) multi-colored (<font color="red"> ...
> </font>) tooltip once and you'll never use the standard
> boring single-line black tooltip again...
> 
> And just in case you were wondering - yes, it also works 
for
> menus, listboxes etc.
> 
> Yair Altman
> http://ymasoftware.com
> 

Hello, this was a great feature I didn't know about. 
However, this works with every uicontrol except with static 
text, the one I needed. So I guess the text uicontrol 
doesnt' have this underlying Java Swing control. But thanks 
to all of you who tried to help.