<?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>
	<pubDate>Fri, 12 Mar 2010 04:45:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Yair Altman</title>
		<link>http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/comment-page-1/#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'll do a post or two about systemdependent but look at my long &lt;a href="http://undocumentedmatlab.com/todo/" target="_blank" rel="nofollow"&gt;TODO list&lt;/a&gt;: so little time, so much to do...</description>
		<content:encoded><![CDATA[<p>@Alan - 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-page-1/#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 - 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-page-1/#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'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 - 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 - 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-page-1/#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 "no" - tooltips use the system's ToolTipManager object that can't be modified. But then I found this Java hack, which I'm not even sure is documented in Java... Assuming you get the Java reference in jHandle:

&lt;pre lang="matlab"&gt;
import java.awt.event.ActionEvent;
action = jHandle.getActionMap.get('postTip');
actionEvent = ActionEvent(jHandle, ActionEvent.ACTION_PERFORMED, 'postTip');
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'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 - this was challenging: Until you asked I thought I knew the standard answer, which is &#8220;no&#8221; - 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>
	<item>
		<title>By: Ben Shepherd</title>
		<link>http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/comment-page-1/#comment-1172</link>
		<dc:creator>Ben Shepherd</dc:creator>
		<pubDate>Wed, 03 Jun 2009 14:39:20 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=327#comment-1172</guid>
		<description>That looks like a really handy feature! On a slightly related note, do you know of any way of forcing a tooltip to display (or update one that is already being displayed)?</description>
		<content:encoded><![CDATA[<p>That looks like a really handy feature! On a slightly related note, do you know of any way of forcing a tooltip to display (or update one that is already being displayed)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MATLAB GUI - Tool Tips are your Friends! &#124; blinkdagger</title>
		<link>http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/comment-page-1/#comment-1088</link>
		<dc:creator>MATLAB GUI - Tool Tips are your Friends! &#124; blinkdagger</dc:creator>
		<pubDate>Sun, 31 May 2009 09:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=327#comment-1088</guid>
		<description>[...] Yair’s Undocumented Tips on How to Spice up Tooltips [...]</description>
		<content:encoded><![CDATA[<p>[...] Yair’s Undocumented Tips on How to Spice up Tooltips [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wei</title>
		<link>http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/comment-page-1/#comment-1046</link>
		<dc:creator>wei</dc:creator>
		<pubDate>Fri, 29 May 2009 14:37:06 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=327#comment-1046</guid>
		<description>Yair, Could handle2struct/struct2handle pair be extended to cover all java objects?</description>
		<content:encoded><![CDATA[<p>Yair, Could handle2struct/struct2handle pair be extended to cover all java objects?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
