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$>
References: <fg0dqh$lt9$> <fg0l33$b7u$> <fg1mnr$foh$> <> <fg2lgl$ses$> <> <fg5fia$epv$> <fg5tfv$7l6$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: 1193742831 11387 (30 Oct 2007 11:13:51 GMT)
NNTP-Posting-Date: Tue, 30 Oct 2007 11:13:51 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 694242
Xref: comp.soft-sys.matlab:435209

> You can use an undocumented feature of all Matlab
> uicontrols, which is the fact that they use underlying 
> Swing controls, and these in turn accept any valid HTML
> strings. So you can do the following for example:
> uicontrol
> This is equivalent to the tex string '\bf1_23^45\rm'. You
> can set font faces, colors, sizes, bold/italic and any 
> 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 
> menus, listboxes etc.
> Yair Altman

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.