Comments on: uiundo – Matlab’s undocumented undo/redo manager https://undocumentedmatlab.com/blog_old/uiundo-matlab-undocumented-undo-redo-manager Charting Matlab's unsupported hidden underbelly Thu, 02 May 2024 08:00:01 +0000 hourly 1 https://wordpress.org/?v=4.4.1 By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/uiundo-matlab-undocumented-undo-redo-manager#comment-325707 Tue, 03 Jun 2014 15:20:38 +0000 https://undocumentedmatlab.com/?p=688#comment-325707 @Xenia – you could modify your KeyPressedCallback function to store the latest values of the edit string, CaretPosition etc. in a persistent manner. For example, you could use the persistent keyword or the component’s ApplicationData property (that you can access via Matlab’s builtin getappdata, setappdata 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.

]]>
By: Xenia Oksanahttps://undocumentedmatlab.com/blog_old/uiundo-matlab-undocumented-undo-redo-manager#comment-325422 Wed, 28 May 2014 15:10:29 +0000 https://undocumentedmatlab.com/?p=688#comment-325422 Dear Mr. Altman,
I try to write my own UNDO function for the matlab editbox. I use the Keypresscallback but that’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

]]>