(SST) ShlWAPIFunctionInfo Version 1.0

Developer Reference
TSSTAdvancedListView.EditUndo Method
Restores the text, in an in-place edit field of a TListItem, to that (immediately) prior to the last edit operation..
Scope
Public (i.e. this method can be referenced from any code, including that in other units, with access to the TSSTAdvancedListView object of interest).
Syntax
Procedure EditUndo();  
Parameters
None  
Return Values
This function does not return a value.
Remarks
Call this method to restore the in-place edit field's text to that prior to the last cut, paste, or delete operation.
Microsoft appears to have built a minor error into the List-View, in-place, edit control's undo ("EM_UNDO") functionality, in that EM_UNDO only restores the last three (3) letters of a modified caption, after cut and/or delete operations, and not the entire text that was removed (i.e. the text that was highlighted prior to the operation). However, if editing is subseqhently terminated by selecting another item or pressing the escape key, the entire caption text will be restored. It should also be stressed that this bug appears to be restricted to the in-place edit fields in List- and Tree-View controls.
The method is only effective while the read-only EditHandle property returns a valid handle to the in-place edit control/field.
The method cannot be applied to subitems.
Requirements
Unit (Declared and implemented in) SSTNewUnit.pas
Library SSTNewUnit.dcu/SSTNewUnit.obj
Unicode Implemented as ANSI version only.
See Also
TSSTAdvancedListView, Methods, CopyEditText, CutEditText, PasteEditText, ClearEditText, EditClearUndo, ClearEditSel, EditSelectAll, EditHandle, CopyCaptionsText.
 
Windows APIs: EM_UNDO, EM_CANUNDO, EM_EMPTYUNDOBUFFER.


Document/Contents version 1.00
Page/URI last updated on April 28, 2022
 
Copyright © Stoelzel Software Technologie (SST) 2010 - 2017
Suggestions and comments mail to:
webmaster@stoelzelsoftwaretech.com