<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
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/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Undocumented Matlab &#187; BlinkDagger</title> <atom:link href="http://undocumentedmatlab.com/blog/tag/blinkdagger/feed/" rel="self" type="application/rss+xml" /><link>http://undocumentedmatlab.com</link> <description>Charting Matlab's unsupported hidden underbelly</description> <lastBuildDate>Thu, 02 Feb 2012 00:24:18 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1.1</generator> <item><title>BlinkDagger &#8211; the end?</title><link>http://undocumentedmatlab.com/blog/blinkdagger-the-end/</link> <comments>http://undocumentedmatlab.com/blog/blinkdagger-the-end/#comments</comments> <pubDate>Wed, 08 Jul 2009 22:03:49 +0000</pubDate> <dc:creator>Yair Altman</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[BlinkDagger]]></category><guid
isPermaLink="false">http://undocumentedmatlab.com/?p=446</guid> <description><![CDATA[In his latest post on BlinkDagger, Quan Quach announced that the BlinkDagger blog will be frozen following co-author Daniel Sutoyo&#8217;s hiring by The MathWorks and the continuous strain of maintaining the blog single-handedly. This is sad news indeed for the [...]<pre> </pre>Related posts:<ol><li><a
href='http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/' rel='bookmark' title='Spicing up Matlab uicontrol tooltips'>Spicing up Matlab uicontrol tooltips</a> <small>Matlab uicontrol tooltips can be spiced-up using HTML and CSS, including fonts, colors, tables and images...</small></li><li><a
href='http://undocumentedmatlab.com/blog/html-support-in-matlab-uicomponents/' rel='bookmark' title='HTML support in Matlab uicomponents'>HTML support in Matlab uicomponents</a> <small>Matlab uicomponents support HTML and CSS, enabling colored items, superscript/subscript, fonts, bold/italic/underline and many other modifications...</small></li><li><a
href='http://undocumentedmatlab.com/blog/2011-perspective/' rel='bookmark' title='2011 perspective &amp; plans for 2012'>2011 perspective &#038; plans for 2012</a> <small>2011 has seen a continued steady growth in readership of this website. This post takes an overview of past achievements and future plans. ...</small></li><li><a
href='http://undocumentedmatlab.com/blog/ideas-for-a-new-book/' rel='bookmark' title='Ideas for a new book'>Ideas for a new book</a> <small>With my Matlab-Java book being published, reader feedback is requested about the next book project. ...</small></li></ol><pre> </pre>]]></description> <content:encoded><![CDATA[<p>In his <a
target="_blank" rel="nofollow" href="http://blinkdagger.com/matlab/the-end-of-blinkdagger-possibly">latest post on BlinkDagger</a>, Quan Quach announced that the BlinkDagger blog will be frozen following co-author Daniel Sutoyo&#8217;s hiring by The MathWorks and the continuous strain of maintaining the blog single-handedly.</p><p>This is sad news indeed for the Matlab user community. Over the past few years, BlinkDagger has become the largest independent Matlab-related blog (at least that I know of), with some 150 well-written tutorials on a very wide variety of Matlab-related topics. In fact, I believe that only <a
target="_blank" rel="nofollow" href="http://blogs.mathworks.com/">the official Matlab blogs</a> and <a
target="_blank" rel="nofollow" href="http://www.mathworks.com/matlabcentral/newsreader/">the Matlab CSSM forum</a> contain more Matlab content. Although there are reportedly over a million Matlab users worldwide, there is precious little independent online Matlab content. Perhaps the need is answered by CSSM and the official blogs, and perhaps the reason is other. In any case, BlinkDagger&#8217;s retirement will be well-felt.</p><p>As a novice (4-month) blogger I can well appreciate the effort it took Quan and Daniel to write so much well-crafted content, follow-up on numerous comments and continuously think of interesting article ideas. The fact they have succeeded in doing so consistently for so long, without noticeable quality degradation, is remarkable. So, while regretting their action, I can certainly understand it. I truly wish both Quan and Daniel the best of luck in their new adventures, and send them an enormous hug of gratitude for their services to the Matlab community.</p><p>Don&#8217;t be lazy &#8211; be a sport &#8211; visit <a
target="_blank" rel="nofollow" href="http://blinkdagger.com/matlab/the-end-of-blinkdagger-possibly">the BlinkDagger link</a> and tell Quan and Daniel that you too appreciate their efforts. Let them leave the stage with a standing ovation rather than a whimper. They deserve it.</p><p>Yair Altman</p><p><pre> </pre>Related posts:<ol><li><a
href='http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/' rel='bookmark' title='Spicing up Matlab uicontrol tooltips'>Spicing up Matlab uicontrol tooltips</a> <small>Matlab uicontrol tooltips can be spiced-up using HTML and CSS, including fonts, colors, tables and images...</small></li><li><a
href='http://undocumentedmatlab.com/blog/html-support-in-matlab-uicomponents/' rel='bookmark' title='HTML support in Matlab uicomponents'>HTML support in Matlab uicomponents</a> <small>Matlab uicomponents support HTML and CSS, enabling colored items, superscript/subscript, fonts, bold/italic/underline and many other modifications...</small></li><li><a
href='http://undocumentedmatlab.com/blog/2011-perspective/' rel='bookmark' title='2011 perspective &amp; plans for 2012'>2011 perspective &#038; plans for 2012</a> <small>2011 has seen a continued steady growth in readership of this website. This post takes an overview of past achievements and future plans. ...</small></li><li><a
href='http://undocumentedmatlab.com/blog/ideas-for-a-new-book/' rel='bookmark' title='Ideas for a new book'>Ideas for a new book</a> <small>With my Matlab-Java book being published, reader feedback is requested about the next book project. ...</small></li></ol></p><pre> </pre>]]></content:encoded> <wfw:commentRss>http://undocumentedmatlab.com/blog/blinkdagger-the-end/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Spicing up Matlab uicontrol tooltips</title><link>http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/</link> <comments>http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/#comments</comments> <pubDate>Wed, 27 May 2009 19:15:31 +0000</pubDate> <dc:creator>Yair Altman</dc:creator> <category><![CDATA[GUI]]></category> <category><![CDATA[Low risk of breaking in future versions]]></category> <category><![CDATA[UI controls]]></category> <category><![CDATA[Undocumented feature]]></category> <category><![CDATA[BlinkDagger]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[Pure Matlab]]></category> <category><![CDATA[uicontrol]]></category><guid
isPermaLink="false">http://undocumentedmatlab.com/?p=327</guid> <description><![CDATA[Matlab uicontrol tooltips can be spiced-up using HTML and CSS, including fonts, colors, tables and images<pre> </pre>Related posts:<ol><li><a
href='http://undocumentedmatlab.com/blog/multi-line-tooltips/' rel='bookmark' title='Multi-line tooltips'>Multi-line tooltips</a> <small>Multi-line tooltips are very easy to set up, once you know your way around a few undocumented hiccups....</small></li><li><a
href='http://undocumentedmatlab.com/blog/uicontrol-side-effect-removing-figure-toolbar/' rel='bookmark' title='uicontrol side-effect: removing figure toolbar'>uicontrol side-effect: removing figure toolbar</a> <small>Matlab's built-in uicontrol function has a side-effect of removing the figure toolbar. This was undocumented until lately. This article describes the side-effect behavior and how to fix it....</small></li><li><a
href='http://undocumentedmatlab.com/blog/additional-uicontrol-tooltip-hacks/' rel='bookmark' title='Additional uicontrol tooltip hacks'>Additional uicontrol tooltip hacks</a> <small>Matlab's uicontrol tooltips have several limitations that can be overcome using the control's underlying Java object....</small></li><li><a
href='http://undocumentedmatlab.com/blog/uicontrol-callbacks/' rel='bookmark' title='Uicontrol callbacks'>Uicontrol callbacks</a> <small>This post details undocumented callbacks exposed by the underlying Java object of Matlab uicontrols, that can be used to modify the control's behavior in a multitude of different events...</small></li></ol><pre> </pre>]]></description> <content:encoded><![CDATA[<p>Outside the <a
target="_blank" rel="nofollow" href="http://blogs.mathworks.com/">official Matlab blogs</a>, perhaps the most widely known Matlab-related active blog is <a
target="_blank" rel="nofollow" href="http://blinkdagger.com/">BlinkDagger</a>. This blog is certainly worth following, especially for novice Matlab users who could gain fresh angles on regular programming tasks that have a simple solution in Matlab.</p><p>In <a
target="_blank" rel="nofollow" href="http://blinkdagger.com/matlab/matlab-gui-tool-tips-are-your-friends">one of their latest posts</a>, BlinkDagger described how to use tooltips in Matlab GUI. In one of this blog&#8217;s very first posts, I described how <a
target="_blank" href="http://undocumentedmatlab.com/blog/html-support-in-matlab-uicomponents/">HTML can easily be used with Matlab uicontrols</a>. Let&#8217;s now combine these ideas to show how HTML support can easily be used to spice-up the tooltips.</p><p>Let&#8217;s start with a simple styled multi-line tooltip:</p><blockquote><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;">str = <span style="color:#A020F0;">'&lt;html&gt;&lt;b&gt;line #1&lt;/b&gt;&lt;br&gt;&lt;i&gt;&lt;font color=&quot;red&quot;&gt;line#2'</span>;
<span style="color: #0000FF;">set</span><span style="color: #080;">&#40;</span>hControl,<span style="color:#A020F0;">'tooltipString'</span>,str<span style="color: #080;">&#41;</span>;</pre></div></div></blockquote><p><center><div
id="attachment_17" class="wp-caption aligncenter" style="width: 164px"><img
class="size-full wp-image-27" title="Multi-line HTML'ed tooltip" src="http://undocumentedmatlab.com/blog/wp-content/uploads/2009/03/html2.png" alt="Multi-line HTML'ed tooltip" width="54" height="59" /><p
class="wp-caption-text">Multi-line HTML'ed tooltip</p></div></center></p><p>This technique was used to display the informative tooltip for my <a
target="_blank" rel="nofollow" href="http://www.mathworks.com/matlabcentral/fileexchange/14225">Java-based data table utility on the Matlab file Exchange</a>:</p><div
class="wp-caption aligncenter" style="width: 460px"><img
alt="Multi-line HTML-styled tooltip" src="http://UndocumentedMatlab.com/images/table.png" title="Multi-line HTML-styled tooltip" width="450" height="187" /><p
class="wp-caption-text">Multi-line HTML-styled tooltip</p></div><p>Tooltips can also be used to present images, using the HTML &lt;img&gt; tag. However, the image src (filename) needs to be formatted in a URL-compliant format such as &#8216;<a
target="_blank" href="http://undocumentedmatlab.com/images/table.png">http://undocumentedmatlab.com/images/table.png</a>&#8216; or &#8216;file:/C:\Yair\Undocumented Matlab\Images\table.png&#8217;.</p><p>If you try to use a non-URL-format filename, the image will not be displayed. Instead, a placeholder box will appear. For example, let&#8217;s take the table screenshot above and try to place its filename directly in the tooltip HTML:</p><blockquote><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;">filePath = <span style="color:#A020F0;">'C:\Yair\Undocumented Matlab\Images\table.png'</span>;
str = <span style="color: #080;">&#91;</span><span style="color:#A020F0;">'&lt;html&gt;&lt;center&gt;&lt;img src=&quot;'</span> filePath <span style="color:#A020F0;">'&quot;&gt;&lt;br&gt;'</span> filePath<span style="color: #080;">&#93;</span>;
<span style="color: #0000FF;">set</span><span style="color: #080;">&#40;</span>hButton,<span style="color:#A020F0;">'tooltipString'</span>,str<span style="color: #080;">&#41;</span>;</pre></div></div></blockquote><p><center><div
class="wp-caption aligncenter" style="width: 251px"><img
alt="Tooltip with invalid HTML img source URL" src="http://UndocumentedMatlab.com/images/html_noimg3.png" title="Tooltip with invalid HTML img source URL" width="241" height="57" /><p
class="wp-caption-text">Tooltip with invalid HTML img source URL</p></div></center></p><p>If we fix filePath to be a valid URL, it now looks as intended:</p><blockquote><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;">filePath = <span style="color:#A020F0;">'C:\Yair\Undocumented Matlab\Images\table.png'</span>;
filePath = <span style="color: #0000FF;">strrep</span><span style="color: #080;">&#40;</span><span style="color: #080;">&#91;</span><span style="color:#A020F0;">'file:/'</span> filePath<span style="color: #080;">&#93;</span>,<span style="color:#A020F0;">'\'</span>,<span style="color:#A020F0;">'/'</span><span style="color: #080;">&#41;</span>;
str = <span style="color: #080;">&#91;</span><span style="color:#A020F0;">'&lt;html&gt;&lt;center&gt;&lt;img src=&quot;'</span> filePath <span style="color:#A020F0;">'&quot;&gt;&lt;br&gt;'</span> <span style="color: #F0F;">...</span>
       <span style="color:#A020F0;">'&lt;b&gt;&lt;font color=&quot;blue&quot;&gt;'</span> filePath<span style="color: #080;">&#93;</span>;
<span style="color: #0000FF;">set</span><span style="color: #080;">&#40;</span>hButton,<span style="color:#A020F0;">'tooltipString'</span>,str<span style="color: #080;">&#41;</span>;</pre></div></div></blockquote><p><center><div
class="wp-caption aligncenter" style="width: 460px"><img
alt="Tooltip with HTML image and caption" src="http://UndocumentedMatlab.com/images/html_img3.png" title="Tooltip with HTML image and caption" width="450" height="199" /><p
class="wp-caption-text"><br
/>Tooltip with HTML image and caption</p></div></center></p><p>Note that the tooltip looks enormous (it&#8217;s actually even downsized to fit this post&#8230;). This is because our HTML &lt;img&gt; was not limited in size and so the tooltip was created to display the screenshot in its original large size. In order to limit the tooltip size, simply add the height and width attributes to the HTML &lt;img&gt; tag, remembering to preserve the original image aspect ratio.</p><p>Now that we know the basics, we can really go wild with HTML and CSS formatting. Have you configured any kick-butt tooltip in your application? If so, please share it here.</p><p><pre> </pre>Related posts:<ol><li><a
href='http://undocumentedmatlab.com/blog/multi-line-tooltips/' rel='bookmark' title='Multi-line tooltips'>Multi-line tooltips</a> <small>Multi-line tooltips are very easy to set up, once you know your way around a few undocumented hiccups....</small></li><li><a
href='http://undocumentedmatlab.com/blog/uicontrol-side-effect-removing-figure-toolbar/' rel='bookmark' title='uicontrol side-effect: removing figure toolbar'>uicontrol side-effect: removing figure toolbar</a> <small>Matlab's built-in uicontrol function has a side-effect of removing the figure toolbar. This was undocumented until lately. This article describes the side-effect behavior and how to fix it....</small></li><li><a
href='http://undocumentedmatlab.com/blog/additional-uicontrol-tooltip-hacks/' rel='bookmark' title='Additional uicontrol tooltip hacks'>Additional uicontrol tooltip hacks</a> <small>Matlab's uicontrol tooltips have several limitations that can be overcome using the control's underlying Java object....</small></li><li><a
href='http://undocumentedmatlab.com/blog/uicontrol-callbacks/' rel='bookmark' title='Uicontrol callbacks'>Uicontrol callbacks</a> <small>This post details undocumented callbacks exposed by the underlying Java object of Matlab uicontrols, that can be used to modify the control's behavior in a multitude of different events...</small></li></ol></p><pre> </pre>]]></content:encoded> <wfw:commentRss>http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/feed/</wfw:commentRss> <slash:comments>13</slash:comments> </item> </channel> </rss>

<!-- W3 Total Cache: Minify debug info:
Engine:             disk: basic
Theme:              b7666
Template:           tag
-->
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: undocumentedmatlab.com @ 2012-02-04 03:39:52 -->

<!-- W3 Total Cache: Page cache debug info:
Engine:             disk: enhanced
Cache key:          blog/tag/blinkdagger/feed/_index.xml_gzip
Caching:            enabled
Status:             not cached
Creation Time:      0.956s
Header info:
X-Pingback:         http://undocumentedmatlab.com/blog/xmlrpc.php
Set-Cookie:         wpgb_visit_last_php-default=1328351991; expires=Sun, 03-Feb-2013 10:39:51 GMT; path=/
Content-Type:       text/xml; charset=UTF-8
Last-Modified:      Sat, 04 Feb 2012 10:39:52 GMT
Vary:               Accept-Encoding, Cookie
Expires:            Sat, 04 Feb 2012 11:39:52 GMT
Pragma:             public
Cache-Control:      public, must-revalidate, proxy-revalidate
Etag:               8ee2eb25ca0a28aa3a38343162bec99b
Content-Encoding:   gzip
-->
