Text Editing (Windows CE 5.0)
With the text editor, you can cut, copy, and paste selected text using menu commands or drag-and-drop operations. You can also undo and redo selected editing actions.
The text editor allows the following editing actions:
- Cutting, copying, pasting, and deleting text
- Undoing and redoing editing actions
- Using drag-and-drop editing
- Specifying column blocks for editing
The following table shows the Platform Builder text editing commands.
|Cut||Removes selected text from the active window.|
|Copy||Duplicates selected text in the active window.|
|Paste||Pastes cut or copied text into an active window.|
|Delete||Deletes text without copying it to the Clipboard.|
|Undo||Reverses the prior edit.|
|Redo||Reapplies the prior edit.|
All editing commands require a selection in order to work. Some commands can make a selection based on the current cursor location.
Command names that begin with an object, such as WordCapitalize, assume that object for a default selection; otherwise, the default selection is the character adjacent to the cursor. For example, the Delete command removes the character to the right of the cursor if there is no selection.
You can select lines, multiple lines, and column blocks of text to cut, copy, delete, and indent.
Most selection commands have extensions that move the cursor and extend the selection. For these commands, the word "Extend" is appended to the name of the command.
By default, these commands are bound to the same shortcut key combination as the primary selection command with the SHIFT key added. For example, the shortcut key command for the CharLeftExtend command is SHIFT+LEFT ARROW.
When you cut text from the file, the text is removed from your file and placed on the Clipboard.
When you delete text from the file, the text is removed from your file, and the Clipboard is not used.
All source windows share the same Clipboard. Commands that use the Clipboard overwrite whatever was previously placed onto the Clipboard by other commands or other Microsoft® Windows® CE applications. This single-Clipboard behavior is true even when emulating a text editor, such as Epsilon, that supports multiple Clipboards.
Drag-and-drop editing is the easiest way to move or copy a selection of text within a file, between files, or between applications. The text you drop remains selected, which makes it easy to copy a block of text into several places.
Use the Undo command to reverse the last editing action. Use the Redo command to reapply editing actions that have been undone. Redo is unavailable unless you have used the Undo command.
Cutting, Copying, or Pasting Text | Enabling the Copy Command to Work on the Current Line Even If there Is No Selection | Deleting Text | Undoing an Edit Action | Redoing an Edit Action | Moving Text Using Drag-and-Drop Editing | Copying Text Using Drag-and-Drop Editing | Moving Text Using Drag-and-Drop Editing with the Right Mouse Button | Selecting a Line of Text | Selecting Multiple Lines of Text | Selecting a Block of Text in a Column
Send Feedback on this topic to the authors