JVCL Help:TJvCustomRichEdit.UndoName

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Indicates the type of the next undo action, if any.


Pascal

 propertyUndoName: TUndoName;


Description

Read UndoName to retrieve the type of the next undo action, if any.
The types of actions that can be undone or redone include typing, delete, drag, drop, cut, and paste operations. This information can be useful fo applications that provide an extended user interface for undo and redo operations, such as a drop-down list box of actions that can be undone.
This example changes the Caption and Enabled properties of 2 TMenuItem's in the OnChange event handler of a rich edit control named JvRichEdit1.
procedure TForm1.JvRichEdit1Change(Sender: TObject);
const

 UndoNames: array [[[JVCL_Help:TUndoName|TUndoName]]] ofstring =
(, 'typing', 'delete', 'drag and drop', 'cut', 'paste');
begin{ Undo }
UndoMenuItem.Enabled := JvRichEdit1.CanUndo;
UndoMenuItem.Caption := '&Undo ' + UndoNames[JvRichEdit1.UndoName];
{ Redo }
RedoMenuItem.Enabled := JvRichEdit1.CanRedo;
RedoMenuItem.Caption := '&Redo ' + UndoNames[JvRichEdit1.RedoName];
end;


About

Notes

Rich Edit 2.0


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page