Manipulating text in a Memo component

Once the user can open a new text file, you want to provide some basic text manipulation operations, such as alignment, word wrapping, and cutting, copying, and pasting. This application uses event handlers for the EditForm menu items to provide these options. Depending on the current condition of the text, these menu items might change during run time—for example, a check mark might appear next to a menu item to indicate whether an option is selected, or a menu item might appear dimmed when it's not available. The text editor application also provides a local, or pop-up, menu that contains text manipulation commands such as Cut, Copy, and Paste.

This section discusses the following topics:

  • Setting text alignment and word wrapping
  • Selecting text
  • Using the Clipboard with text
  • Providing a pop-up menu

Was this article helpful?

0 -1
Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook

Post a comment