<?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: uiundo &#8211; Matlab&#039;s undocumented undo/redo manager	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/uiundo-matlab-undocumented-undo-redo-manager/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/uiundo-matlab-undocumented-undo-redo-manager?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=uiundo-matlab-undocumented-undo-redo-manager</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Tue, 03 Jun 2014 15:20:38 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.3</generator>
	<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/uiundo-matlab-undocumented-undo-redo-manager#comment-325707</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Tue, 03 Jun 2014 15:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=688#comment-325707</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/uiundo-matlab-undocumented-undo-redo-manager#comment-325422&quot;&gt;Xenia Oksana&lt;/a&gt;.

@Xenia - you could modify your &lt;b&gt;KeyPressedCallback&lt;/b&gt; function to store the latest values of the edit string, CaretPosition etc. in a persistent manner. For example, you could use the &lt;b&gt;&lt;i&gt;persistent&lt;/i&gt;&lt;/b&gt; keyword or the component&#039;s &lt;b&gt;ApplicationData&lt;/b&gt; property (that you can access via Matlab&#039;s builtin &lt;i&gt;&lt;b&gt;getappdata, setappdata&lt;/b&gt;&lt;/i&gt; functions. Then, in your callback function you can always check the new value and compare it to the persistent value that was stored in the last callback invocation.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/uiundo-matlab-undocumented-undo-redo-manager#comment-325422">Xenia Oksana</a>.</p>
<p>@Xenia &#8211; you could modify your <b>KeyPressedCallback</b> function to store the latest values of the edit string, CaretPosition etc. in a persistent manner. For example, you could use the <b><i>persistent</i></b> keyword or the component&#8217;s <b>ApplicationData</b> property (that you can access via Matlab&#8217;s builtin <i><b>getappdata, setappdata</b></i> functions. Then, in your callback function you can always check the new value and compare it to the persistent value that was stored in the last callback invocation.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Xenia Oksana		</title>
		<link>https://undocumentedmatlab.com/articles/uiundo-matlab-undocumented-undo-redo-manager#comment-325422</link>

		<dc:creator><![CDATA[Xenia Oksana]]></dc:creator>
		<pubDate>Wed, 28 May 2014 15:10:29 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=688#comment-325422</guid>

					<description><![CDATA[Dear Mr. Altman,
I try to write my own UNDO function for the matlab editbox. I use the Keypresscallback but that&#039;s a little bit to late. I need the originaltext before the keypress and the CaretPosition, SelectionStart, SelectionEnd. Do you know how to get all values before the Keypresscallback?
regards]]></description>
			<content:encoded><![CDATA[<p>Dear Mr. Altman,<br />
I try to write my own UNDO function for the matlab editbox. I use the Keypresscallback but that&#8217;s a little bit to late. I need the originaltext before the keypress and the CaretPosition, SelectionStart, SelectionEnd. Do you know how to get all values before the Keypresscallback?<br />
regards</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
