<?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: Customizing uiundo</title> <atom:link href="http://undocumentedmatlab.com/blog/customizing-uiundo/feed/" rel="self" type="application/rss+xml" /><link>http://undocumentedmatlab.com/blog/customizing-uiundo/</link> <description>Charting Matlab's unsupported hidden underbelly</description> <lastBuildDate>Fri, 03 Feb 2012 11:51:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1.1</generator> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/customizing-uiundo/#comment-9159</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Tue, 20 Apr 2010 16:01:35 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=708#comment-9159</guid> <description>@Jason - when you undo steps, you first need to undo all the actions that followed your desired undo-action, because they might affect the way your undone action behaves. Effectively, you are unrolling the actions at the exact reverse order in which they happened. If you look at any program with an undo list, they all behave the same way (try any editor, for example). I actually think it&#039;s very intuitive.Regarding the scrollable undo/redo lists - see the &lt;a target=&quot;_blank&quot; href=&quot;http://undocumentedmatlab.com/blog/uiundo-matlab-undocumented-undo-redo-manager/&quot; rel=&quot;nofollow&quot;&gt;previous post&lt;/a&gt; for an example. The scrollbar appears automatically when more than 8 list items are available. This is standard JComboBox behavior (the number 8 is a modifiable property of the JComboBox).</description> <content:encoded><![CDATA[<p>@Jason &#8211; when you undo steps, you first need to undo all the actions that followed your desired undo-action, because they might affect the way your undone action behaves. Effectively, you are unrolling the actions at the exact reverse order in which they happened. If you look at any program with an undo list, they all behave the same way (try any editor, for example). I actually think it&#8217;s very intuitive.</p><p>Regarding the scrollable undo/redo lists &#8211; see the <a
target="_blank" href="http://undocumentedmatlab.com/blog/uiundo-matlab-undocumented-undo-redo-manager/" rel="nofollow">previous post</a> for an example. The scrollbar appears automatically when more than 8 list items are available. This is standard JComboBox behavior (the number 8 is a modifiable property of the JComboBox).</p> ]]></content:encoded> </item> <item><title>By: Jason McMains</title><link>http://undocumentedmatlab.com/blog/customizing-uiundo/#comment-9155</link> <dc:creator>Jason McMains</dc:creator> <pubDate>Tue, 20 Apr 2010 12:12:20 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=708#comment-9155</guid> <description>Sorry for more updates, but here is my current solution&lt;pre lang=&quot;matlab&quot;&gt;for i=length(undoObj.CommandManager.UndoStack):-1:num
undoObj.CommandManager.undo;
end&lt;/pre&gt;This does what I need, but it requires cycling through all the previous changes. I&#039;d rather just skip to the desired step, because for my gui, this process is pretty slow.</description> <content:encoded><![CDATA[<p>Sorry for more updates, but here is my current solution</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;"><span style="color: #0000FF;">for</span> <span style="color: #0000FF;"><span style="color: #33f;">i</span></span>=<span style="color: #0000FF;">length</span><span style="color: #080;">&#40;</span>undoObj.<span style="">CommandManager</span>.<span style="">UndoStack</span><span style="color: #080;">&#41;</span><span style="color: #F0F;">:</span>-<span style="color: #33f;">1</span><span style="color: #F0F;">:</span>num
   undoObj.<span style="">CommandManager</span>.<span style="">undo</span>;
<span style="color: #0000FF;">end</span></pre></div></div><p>This does what I need, but it requires cycling through all the previous changes. I&#8217;d rather just skip to the desired step, because for my gui, this process is pretty slow.</p> ]]></content:encoded> </item> <item><title>By: Jason McMains</title><link>http://undocumentedmatlab.com/blog/customizing-uiundo/#comment-9153</link> <dc:creator>Jason McMains</dc:creator> <pubDate>Tue, 20 Apr 2010 11:47:58 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=708#comment-9153</guid> <description>small update: I&#039;ve gotten this to work partially by using:&lt;pre lang=&quot;matlab&quot;&gt;undoObj.CommandManager.UndoStack(num).execute;&lt;/pre&gt;but the undoObj structure wont update to reflect the changes.Thanks Again</description> <content:encoded><![CDATA[<p>small update: I&#8217;ve gotten this to work partially by using:</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;">undoObj.<span style="">CommandManager</span>.<span style="">UndoStack</span><span style="color: #080;">&#40;</span>num<span style="color: #080;">&#41;</span>.<span style="">execute</span>;</pre></div></div><p>but the undoObj structure wont update to reflect the changes.</p><p>Thanks Again</p> ]]></content:encoded> </item> <item><title>By: Jason McMains</title><link>http://undocumentedmatlab.com/blog/customizing-uiundo/#comment-9152</link> <dc:creator>Jason McMains</dc:creator> <pubDate>Tue, 20 Apr 2010 11:21:08 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=708#comment-9152</guid> <description>Hey Yair,
I&#039;m trying to implement this in a GUI, and I have the basic functionality working, but I&#039;m having trouble jumping to an undo point earlier than the most recent, i.e. if there are 5 possible undo actions, I would like to jump to the 3rd or 4th instead of the last.Also, Do you know how to create the list box used in the function button or the cell button in the editor? its a context menu with a scroll bar on the side. I&#039;d like to use that functionality for an undo dropdown.Thanks for any help!
Jason</description> <content:encoded><![CDATA[<p>Hey Yair,<br
/> I&#8217;m trying to implement this in a GUI, and I have the basic functionality working, but I&#8217;m having trouble jumping to an undo point earlier than the most recent, i.e. if there are 5 possible undo actions, I would like to jump to the 3rd or 4th instead of the last.</p><p>Also, Do you know how to create the list box used in the function button or the cell button in the editor? its a context menu with a scroll bar on the side. I&#8217;d like to use that functionality for an undo dropdown.</p><p>Thanks for any help!<br
/> Jason</p> ]]></content:encoded> </item> <item><title>By: Venkat</title><link>http://undocumentedmatlab.com/blog/customizing-uiundo/#comment-4345</link> <dc:creator>Venkat</dc:creator> <pubDate>Wed, 11 Nov 2009 14:14:08 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=708#comment-4345</guid> <description>Hi Yair,
Can you please answer my query at
http://groups.google.com/group/comp.soft-sys.matlab/browse_thread/thread/8bba37279a78b926#sorry for the irrevalent post herethanks</description> <content:encoded><![CDATA[<p>Hi Yair,<br
/> Can you please answer my query at<br
/> <a
href="http://groups.google.com/group/comp.soft-sys.matlab/browse_thread/thread/8bba37279a78b926#" rel="nofollow">http://groups.google.com/group/comp.soft-sys.matlab/browse_thread/thread/8bba37279a78b926#</a></p><p>sorry for the irrevalent post here</p><p>thanks</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-04 03:52:42 -->

<!-- W3 Total Cache: Page cache debug info:
Engine:             disk: enhanced
Cache key:          blog/customizing-uiundo/feed/_index.xml_gzip
Caching:            enabled
Status:             not cached
Creation Time:      0.691s
Header info:
X-Pingback:         http://undocumentedmatlab.com/blog/xmlrpc.php
Set-Cookie:         wpgb_visit_last_php-default=1328352762; expires=Sun, 03-Feb-2013 10:52:42 GMT; path=/
Link:               <http://undocumentedmatlab.com/?p=708>; rel=shortlink
Content-Type:       text/xml; charset=UTF-8
Last-Modified:      Sat, 04 Feb 2012 10:52:42 GMT
Vary:               Accept-Encoding, Cookie
Expires:            Sat, 04 Feb 2012 11:52:42 GMT
Pragma:             public
Cache-Control:      public, must-revalidate, proxy-revalidate
Etag:               c2ae067f30b26b9415941883712f0698
Content-Encoding:   gzip
-->
