<?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: Spicing up Matlab uicontrol tooltips</title> <atom:link href="http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/feed/" rel="self" type="application/rss+xml" /><link>http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/</link> <description>Charting Matlab's unsupported hidden underbelly</description> <lastBuildDate>Thu, 09 Feb 2012 09:23:08 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1.1</generator> <item><title>By: Multi-line tooltips &#124; Undocumented Matlab</title><link>http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/#comment-60858</link> <dc:creator>Multi-line tooltips &#124; Undocumented Matlab</dc:creator> <pubDate>Thu, 03 Nov 2011 02:11:37 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=327#comment-60858</guid> <description>[...] In this blog, I have already posted several articles about how to tweak tooltip contents (here, here, and here). Today I would like to expand on one of the aspects that were already covered, [...]</description> <content:encoded><![CDATA[<p>[...] In this blog, I have already posted several articles about how to tweak tooltip contents (here, here, and here). Today I would like to expand on one of the aspects that were already covered, [...]</p> ]]></content:encoded> </item> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/#comment-24647</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Sat, 04 Dec 2010 18:45:38 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=327#comment-24647</guid> <description>@Koelemay - datacursor popups are not tooltips and they don&#039;t support HTML to the best of my knowledge. There&#039;s probably a way to make them HTML-aware, if you dig deep enough in the datacursor code (\toolbox\matlab\graphics\@graphics\@datacursor\*.m, \@datatip\*.m and their relatives within \@graphics). Let us all know if you find a workaround.</description> <content:encoded><![CDATA[<p>@Koelemay &#8211; datacursor popups are not tooltips and they don&#8217;t support HTML to the best of my knowledge. There&#8217;s probably a way to make them HTML-aware, if you dig deep enough in the datacursor code (\toolbox\matlab\graphics\@graphics\@datacursor\*.m, \@datatip\*.m and their relatives within \@graphics). Let us all know if you find a workaround.</p> ]]></content:encoded> </item> <item><title>By: Koelemay</title><link>http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/#comment-24508</link> <dc:creator>Koelemay</dc:creator> <pubDate>Fri, 03 Dec 2010 13:42:44 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=327#comment-24508</guid> <description>Hi Yair,
Sorry I think my question was too ambiguous; I was wondering if it is possible to get html markup in the datacursor mode popups.  So, for example, using datamatrix I&#039;d like to use html markup in the strings for the dataTips input.  Hopefully I&#039;m not missing something horribly obvious!  Thanks again for your help!</description> <content:encoded><![CDATA[<p>Hi Yair,<br
/> Sorry I think my question was too ambiguous; I was wondering if it is possible to get html markup in the datacursor mode popups.  So, for example, using datamatrix I&#8217;d like to use html markup in the strings for the dataTips input.  Hopefully I&#8217;m not missing something horribly obvious!  Thanks again for your help!</p> ]]></content:encoded> </item> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/#comment-24436</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Thu, 02 Dec 2010 17:11:44 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=327#comment-24436</guid> <description>@Koelemay - take a look at my &lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/16181-datamatrix&quot; rel=&quot;nofollow&quot;&gt;DataMatrix&lt;/a&gt; utility, which does this:
&lt;center&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/16181-datamatrix&quot; rel=&quot;nofollow&quot;&gt;&lt;img alt=&quot;DataMatrix data-cursor popup&quot; src=&quot;http://www.undocumentedmatlab.com/images/datamatrix.png&quot; title=&quot;DataMatrix data-cursor popup&quot; width=&quot;300&quot; height=&quot;265&quot; /&gt;&lt;/a&gt;&lt;/center&gt;</description> <content:encoded><![CDATA[<p>@Koelemay &#8211; take a look at my <a
rel="nofollow" target="_blank" href="http://www.mathworks.com/matlabcentral/fileexchange/16181-datamatrix" rel="nofollow">DataMatrix</a> utility, which does this:<br
/><center><a
rel="nofollow" target="_blank" href="http://www.mathworks.com/matlabcentral/fileexchange/16181-datamatrix" rel="nofollow"><img
alt="DataMatrix data-cursor popup" src="http://www.undocumentedmatlab.com/images/datamatrix.png" title="DataMatrix data-cursor popup" width="300" height="265" /></a></center></p> ]]></content:encoded> </item> <item><title>By: Koelemay</title><link>http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/#comment-24425</link> <dc:creator>Koelemay</dc:creator> <pubDate>Thu, 02 Dec 2010 15:05:01 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=327#comment-24425</guid> <description>Great post as usual --  any idea how to get this to work on the text popups when using datacursormode??  It seems like it would be similar to the tooltips but doesn&#039;t seem to work by default.  Thanks in advance for your time!</description> <content:encoded><![CDATA[<p>Great post as usual &#8212;  any idea how to get this to work on the text popups when using datacursormode??  It seems like it would be similar to the tooltips but doesn&#8217;t seem to work by default.  Thanks in advance for your time!</p> ]]></content:encoded> </item> <item><title>By: Zeilenumbruch für Tooltips in Matlab &#124; House-Tiere         -d(~_~)b-</title><link>http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/#comment-9063</link> <dc:creator>Zeilenumbruch für Tooltips in Matlab &#124; House-Tiere         -d(~_~)b-</dc:creator> <pubDate>Sat, 17 Apr 2010 01:46:59 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=327#comment-9063</guid> <description>[...] Was aber funktioniert ist html, es gibt ein undokumentiertes Feautre, mit dem einfach html eingefügt werden kann &#8211; Java machts möglich. [...]</description> <content:encoded><![CDATA[<p>[...] Was aber funktioniert ist html, es gibt ein undokumentiertes Feautre, mit dem einfach html eingefügt werden kann &#8211; Java machts möglich. [...]</p> ]]></content:encoded> </item> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/#comment-1176</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Wed, 03 Jun 2009 21:41:56 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=327#comment-1176</guid> <description>@Alan - thanks.I&#039;ll do a post or two about systemdependent but look at my long &lt;a href=&quot;http://undocumentedmatlab.com/todo/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;TODO list&lt;/a&gt;: so little time, so much to do...</description> <content:encoded><![CDATA[<p>@Alan &#8211; thanks.</p><p>I&#8217;ll do a post or two about systemdependent but look at my long <a
href="http://undocumentedmatlab.com/todo/" target="_blank" rel="nofollow">TODO list</a>: so little time, so much to do&#8230;</p> ]]></content:encoded> </item> <item><title>By: Alan</title><link>http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/#comment-1175</link> <dc:creator>Alan</dc:creator> <pubDate>Wed, 03 Jun 2009 21:19:30 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=327#comment-1175</guid> <description>Offtopic, sorry, but just wanted to reiterate - great blog idea, you should definitely keep it up. How about a post on systemdependent() ?</description> <content:encoded><![CDATA[<p>Offtopic, sorry, but just wanted to reiterate &#8211; great blog idea, you should definitely keep it up. How about a post on systemdependent() ?</p> ]]></content:encoded> </item> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/#comment-1174</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Wed, 03 Jun 2009 17:18:56 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=327#comment-1174</guid> <description>@wei - handle2struct/struct2handle are internal Matlab functions that cannot be modified. However, you can easily build your own m-file version that try&#039;s to call the built-in version and if an error is thrown, then the catch segment will create the necessary output object based on inspection of the Java object.This could be a nice File Exchange submission - care to tackle it?You can get some pointers by looking at the code within my UIInspect utility on the File Exchange.</description> <content:encoded><![CDATA[<p>@wei &#8211; handle2struct/struct2handle are internal Matlab functions that cannot be modified. However, you can easily build your own m-file version that try&#8217;s to call the built-in version and if an error is thrown, then the catch segment will create the necessary output object based on inspection of the Java object.</p><p>This could be a nice File Exchange submission &#8211; care to tackle it?</p><p>You can get some pointers by looking at the code within my UIInspect utility on the File Exchange.</p> ]]></content:encoded> </item> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/#comment-1173</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Wed, 03 Jun 2009 17:10:51 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=327#comment-1173</guid> <description>@Ben - this was challenging: Until you asked I thought I knew the standard answer, which is &quot;no&quot; - tooltips use the system&#039;s ToolTipManager object that can&#039;t be modified. But then I found this Java hack, which I&#039;m not even sure is documented in Java... Assuming you get the Java reference in jHandle:&lt;pre lang=&quot;matlab&quot;&gt;
import java.awt.event.ActionEvent;
action = jHandle.getActionMap.get(&#039;postTip&#039;);
actionEvent = ActionEvent(jHandle, ActionEvent.ACTION_PERFORMED, &#039;postTip&#039;);
action.actionPerformed(actionEvent);
&lt;/pre&gt;The mouse does not even have to be anywhere near the GUI object!Unfortunately, this hack requires the Java reference of the GUI object, and is not available for Matlab handles. To get a Matlab handle&#039;s underlying Java reference you can use my FindJObj utility on the File Exchange and then use the hack.</description> <content:encoded><![CDATA[<p>@Ben &#8211; this was challenging: Until you asked I thought I knew the standard answer, which is &#8220;no&#8221; &#8211; tooltips use the system&#8217;s ToolTipManager object that can&#8217;t be modified. But then I found this Java hack, which I&#8217;m not even sure is documented in Java&#8230; Assuming you get the Java reference in jHandle:</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;">import java.<span style="">awt</span>.<span style="">event</span>.<span style="">ActionEvent</span>;
action = jHandle.<span style="">getActionMap</span>.<span style="color: #0000FF;">get</span><span style="color: #080;">&#40;</span><span style="color:#A020F0;">'postTip'</span><span style="color: #080;">&#41;</span>;
actionEvent = ActionEvent<span style="color: #080;">&#40;</span>jHandle, ActionEvent.<span style="">ACTION_PERFORMED</span>, <span style="color:#A020F0;">'postTip'</span><span style="color: #080;">&#41;</span>;
action.<span style="">actionPerformed</span><span style="color: #080;">&#40;</span>actionEvent<span style="color: #080;">&#41;</span>;</pre></div></div><p>The mouse does not even have to be anywhere near the GUI object!</p><p>Unfortunately, this hack requires the Java reference of the GUI object, and is not available for Matlab handles. To get a Matlab handle&#8217;s underlying Java reference you can use my FindJObj utility on the File Exchange and then use the hack.</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-02-09 05:59:31 -->

<!-- W3 Total Cache: Page cache debug info:
Engine:             disk: enhanced
Cache key:          blog/spicing-up-matlab-uicontrol-tooltips/feed/_index.xml_gzip
Caching:            enabled
Status:             not cached
Creation Time:      0.542s
Header info:
X-Pingback:         http://undocumentedmatlab.com/blog/xmlrpc.php
Set-Cookie:         wpgb_visit_last_php-default=1328792371; expires=Fri, 08-Feb-2013 12:59:31 GMT; path=/
Link:               <http://undocumentedmatlab.com/?p=327>; rel=shortlink
Content-Type:       text/xml; charset=UTF-8
Last-Modified:      Thu, 09 Feb 2012 12:59:31 GMT
Vary:               Accept-Encoding, Cookie
Expires:            Thu, 09 Feb 2012 13:59:31 GMT
Pragma:             public
Cache-Control:      public, must-revalidate, proxy-revalidate
Etag:               35a93fba47268e9dc5453e9af943a61c
Content-Encoding:   gzip
-->
