<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: HTML support in Matlab uicomponents</title> <atom:link href="http://undocumentedmatlab.com/blog/html-support-in-matlab-uicomponents/feed/" rel="self" type="application/rss+xml" /><link>http://undocumentedmatlab.com/blog/html-support-in-matlab-uicomponents/</link> <description>Charting Matlab's unsupported hidden underbelly</description> <lastBuildDate>Fri, 18 May 2012 13:56:51 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1.1</generator> <item><title>By: Uitable cell colors &#124; Undocumented Matlab</title><link>http://undocumentedmatlab.com/blog/html-support-in-matlab-uicomponents/#comment-60491</link> <dc:creator>Uitable cell colors &#124; Undocumented Matlab</dc:creator> <pubDate>Fri, 28 Oct 2011 09:37:40 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=14#comment-60491</guid> <description>[...] have used HTML to format the header labels into two rows, to enable compact columns. I have already described using HTML formatting in Matlab controls in several articles on this website. [...]</description> <content:encoded><![CDATA[<p>[...] have used HTML to format the header labels into two rows, to enable compact columns. I have already described using HTML formatting in Matlab controls in several articles on this website. [...]</p> ]]></content:encoded> </item> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/html-support-in-matlab-uicomponents/#comment-52187</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Sat, 23 Jul 2011 17:40:41 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=14#comment-52187</guid> <description>@LL - your question is not understood. Be more specific</description> <content:encoded><![CDATA[<p>@LL &#8211; your question is not understood. Be more specific</p> ]]></content:encoded> </item> <item><title>By: LL</title><link>http://undocumentedmatlab.com/blog/html-support-in-matlab-uicomponents/#comment-52096</link> <dc:creator>LL</dc:creator> <pubDate>Fri, 22 Jul 2011 17:46:27 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=14#comment-52096</guid> <description>Hi,
How to pass a variable in the  element?
var
for example: I have
var = 10;</description> <content:encoded><![CDATA[<p>Hi,<br
/> How to pass a variable in the  element?<br
/> var<br
/> for example: I have<br
/> var = 10;</p> ]]></content:encoded> </item> <item><title>By: Aurélien</title><link>http://undocumentedmatlab.com/blog/html-support-in-matlab-uicomponents/#comment-49239</link> <dc:creator>Aurélien</dc:creator> <pubDate>Thu, 23 Jun 2011 09:43:59 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=14#comment-49239</guid> <description>Hi Yair,Just a note about using HTML within uicontrols:I use a lot of HTML code for my uicontrols . The only drawback I have found is when you decide to &lt;b&gt;set enable off&lt;/b&gt; one of them. For example :&lt;pre lang=&quot;matlab&quot;&gt;
f = uimenu(&#039;Label&#039;,&#039;Workspace&#039;);
h_ui = uimenu(f,&#039;Label&#039;,&#039;New Figure&#039;,&#039;enable&#039;,&#039;off&#039;);
&lt;/pre&gt;As the ForegroundColor of &quot;New Figure&quot; label is still in red it is not clear that the label is disabled. &lt;b&gt;I would expect to see the label in grey.&lt;/b&gt;Currently I remove HTML tags as follows:
&lt;pre lang=&quot;matlab&quot;&gt;
set(rr,&#039;Label&#039;,regexprep(get(rr,&#039;Label&#039;),&#039; ]*&gt;&#039;, &#039;&#039;),&#039;enable&#039;,&#039;off&#039;)&lt;/pre&gt;Note: The regular expression does not display correctly on your site, I am using this one from this tech-note:
&lt;a href=&quot;http://www.mathworks.com/support/solutions/en/data/1-1W023G/?solution=1-1W023G&quot; rel=&quot;nofollow&quot;&gt;How can I read an HTML file into MATLAB and discard the HTML tags?&lt;/a&gt;Except this drawback , using HTML in uicontrols is easy and makes GUIs to be more pretty.Aurélien</description> <content:encoded><![CDATA[<p>Hi Yair,</p><p>Just a note about using HTML within uicontrols:</p><p>I use a lot of HTML code for my uicontrols . The only drawback I have found is when you decide to <b>set enable off</b> one of them. For example :</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;">f = <span style="color: #0000FF;">uimenu</span><span style="color: #080;">&#40;</span><span style="color:#A020F0;">'Label'</span>,<span style="color:#A020F0;">'Workspace'</span><span style="color: #080;">&#41;</span>;
h_ui = <span style="color: #0000FF;">uimenu</span><span style="color: #080;">&#40;</span>f,<span style="color:#A020F0;">'Label'</span>,<span style="color:#A020F0;">'New Figure'</span>,<span style="color:#A020F0;">'enable'</span>,<span style="color:#A020F0;">'off'</span><span style="color: #080;">&#41;</span>;</pre></div></div><p>As the ForegroundColor of &#8220;New Figure&#8221; label is still in red it is not clear that the label is disabled. <b>I would expect to see the label in grey.</b></p><p>Currently I remove HTML tags as follows:</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;"><span style="color: #0000FF;">set</span><span style="color: #080;">&#40;</span>rr,<span style="color:#A020F0;">'Label'</span>,regexprep<span style="color: #080;">&#40;</span><span style="color: #0000FF;">get</span><span style="color: #080;">&#40;</span>rr,<span style="color:#A020F0;">'Label'</span><span style="color: #080;">&#41;</span>,<span style="color:#A020F0;">' ]*&gt;'</span>, <span style="color:#A020F0;">''</span><span style="color: #080;">&#41;</span>,<span style="color:#A020F0;">'enable'</span>,<span style="color:#A020F0;">'off'</span><span style="color: #080;">&#41;</span></pre></div></div><p>Note: The regular expression does not display correctly on your site, I am using this one from this tech-note:<br
/> <a
href="http://www.mathworks.com/support/solutions/en/data/1-1W023G/?solution=1-1W023G" rel="nofollow">How can I read an HTML file into MATLAB and discard the HTML tags?</a></p><p>Except this drawback , using HTML in uicontrols is easy and makes GUIs to be more pretty.</p><p>Aurélien</p> ]]></content:encoded> </item> <item><title>By: Customizing uitree nodes &#8211; part 1 &#124; Undocumented Matlab</title><link>http://undocumentedmatlab.com/blog/html-support-in-matlab-uicomponents/#comment-16121</link> <dc:creator>Customizing uitree nodes &#8211; part 1 &#124; Undocumented Matlab</dc:creator> <pubDate>Wed, 25 Aug 2010 18:34:49 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=14#comment-16121</guid> <description>[...] names share the same HTML support feature as all Java Swing labels. Therefore, we can specify font size/face/color, bold, italic, underline, [...]</description> <content:encoded><![CDATA[<p>[...] names share the same HTML support feature as all Java Swing labels. Therefore, we can specify font size/face/color, bold, italic, underline, [...]</p> ]]></content:encoded> </item> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/html-support-in-matlab-uicomponents/#comment-13899</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Thu, 29 Jul 2010 16:29:03 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=14#comment-13899</guid> <description>You can use HTML to set popup menu items to gray-italic, but you can&#039;t prevent the user from clicking these items. In your callback, simply ignore any clicks made on your &quot;uselectable&quot; items.</description> <content:encoded><![CDATA[<p>You can use HTML to set popup menu items to gray-italic, but you can&#8217;t prevent the user from clicking these items. In your callback, simply ignore any clicks made on your &#8220;uselectable&#8221; items.</p> ]]></content:encoded> </item> <item><title>By: Fil</title><link>http://undocumentedmatlab.com/blog/html-support-in-matlab-uicomponents/#comment-13861</link> <dc:creator>Fil</dc:creator> <pubDate>Thu, 29 Jul 2010 08:21:59 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=14#comment-13861</guid> <description>Thanks Yair,So there is no way to create a popupmenu with unselectable options using Matlab or Java?Thanks for your help,
Fil</description> <content:encoded><![CDATA[<p>Thanks Yair,</p><p>So there is no way to create a popupmenu with unselectable options using Matlab or Java?</p><p>Thanks for your help,<br
/> Fil</p> ]]></content:encoded> </item> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/html-support-in-matlab-uicomponents/#comment-13712</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Tue, 27 Jul 2010 17:41:35 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=14#comment-13712</guid> <description>@Fil - You can use HTML to define separate item colors (see the example in the main article above), but you can&#039;t define unselectable items.</description> <content:encoded><![CDATA[<p>@Fil &#8211; You can use HTML to define separate item colors (see the example in the main article above), but you can&#8217;t define unselectable items.</p> ]]></content:encoded> </item> <item><title>By: Fil</title><link>http://undocumentedmatlab.com/blog/html-support-in-matlab-uicomponents/#comment-13709</link> <dc:creator>Fil</dc:creator> <pubDate>Tue, 27 Jul 2010 16:57:17 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=14#comment-13709</guid> <description>Dear all,Was just wondering if using this technique I would be able to make some options in a popupmenu change colour and more importantly unselectable?Thanks for your invaluable help with this website.Fil.</description> <content:encoded><![CDATA[<p>Dear all,</p><p>Was just wondering if using this technique I would be able to make some options in a popupmenu change colour and more importantly unselectable?</p><p>Thanks for your invaluable help with this website.</p><p>Fil.</p> ]]></content:encoded> </item> <item><title>By: Tabbed panes – uitab and relatives &#124; Undocumented Matlab</title><link>http://undocumentedmatlab.com/blog/html-support-in-matlab-uicomponents/#comment-11439</link> <dc:creator>Tabbed panes – uitab and relatives &#124; Undocumented Matlab</dc:creator> <pubDate>Wed, 23 Jun 2010 18:53:02 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=14#comment-11439</guid> <description>[...] remember that HTML is accepted just as in any other Swing-based label [...]</description> <content:encoded><![CDATA[<p>[...] remember that HTML is accepted just as in any other Swing-based label [...]</p> ]]></content:encoded> </item> </channel> </rss>

<!-- W3 Total Cache: Minify debug info:
Engine:             disk: basic
Theme:              b7666
Template:           single
-->
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: undocumentedmatlab.com @ 2012-05-18 23:03:23 -->

<!-- W3 Total Cache: Page cache debug info:
Engine:             disk: enhanced
Cache key:          blog/html-support-in-matlab-uicomponents/feed/_index.xml_gzip
Caching:            enabled
Status:             not cached
Creation Time:      0.564s
Header info:
X-Pingback:         http://undocumentedmatlab.com/blog/xmlrpc.php
Set-Cookie:         wpgb_visit_last_php-default=1337407403; expires=Sun, 19-May-2013 06:03:23 GMT; path=/
Link:               <http://undocumentedmatlab.com/?p=14>; rel=shortlink
Content-Type:       text/xml; charset=UTF-8
Last-Modified:      Sat, 19 May 2012 06:03:23 GMT
Vary:               Accept-Encoding, Cookie
Expires:            Sat, 19 May 2012 07:03:23 GMT
Pragma:             public
Cache-Control:      public, must-revalidate, proxy-revalidate
Etag:               9b17a79b0f326130450c7be2be48669e
Content-Encoding:   gzip
-->
