|
Home | Tips | Library | Other Authors | Other WP Sites | Writer's Links | Contact | Site Map | Donate |
|
Toolbox for WordPerfect |
||
|
Macros, tips, and
templates for Corel® WordPerfect® for Windows® |
Page updated Feb 23, 2011 | |
|
WordPerfect Tips Main tips page | Browse tips |
|||
|
Enhancing the Find and Replace feature Related pages - |
Often, the standard Find and Replace dialog has to be dragged from its position in the center of the screen if you want to see the item found or the item to be replaced. Moreover, it does not provide an easy way to replace (or format) just certain instances of an item. Finally, having to repeatedly open the F&R dialog (Edit, Find and Replace, or <Ctrl+F>) to find or replace the same item is tedious. Here's a tip posted by Pam Britt on WordPerfect Universe that may help:
However, sometimes there is a problem with the part of Pam's tip that says -
Most of the time this will be true. But if the user has set Edit > Find and Replace > Action to anything other than "Select Match," or plays a macro that sets the Action to another value, then the items found will not be selected (i.e., highlighted in reverse color). The Action menu in Find and Replace is "sticky": settings will persist into the next WP session. Here's a solution: Create (or download) and play the Find and Replace macro below, which could be assigned to the <Ctrl+F> and/or <F2> key instead of simply the "Find and Replace" feature. It will reset the Find and Replace dialog's settings first; then it will pop up the Find and Replace dialog. This will be completely transparent to the user. Tips: To copy this macro into your own WordPerfect see here. For help assigning macros to keystroke combinations ("shortcut keys") see here. Notes: (1) The two code snippets below in blue (by Klaus Pfeiffer at WordPerfect Universe) allow displaying the Find and Replace dialog at the top of the WordPerfect window to maximize visibility of the main text area. [Screen shot of dialog] You can adjust the horizontal offset from the center and the vertical offset from the top of the main WordPerfect window, in the SetWindowMostTop() command (i.e., the two numbers shown in red). (2) Note also that the AppLocate() command must have the exact name of your Find and Replace dialog (the macro assumes English editions of WordPerfect). (3) The two blue code snippets are optional, and can be deleted if desired. (The FindDlg() command is required.)
When the found item is shown selected on screen you can use other standard formatting shortcut keys to quickly make the instance bold, italic, underlined etc. Just press <Ctrl+B> for bold, <Ctrl+I> for italic, etc., while the item is selected. Then simply press <Ctrl+Shft+F> to go to the next instance of the item, if desired. You might even like to highlight found-and-selected items in the current highlight color. Since there doesn't seem to be a built-in feature in WP's keyboard editor that you can directly assign to a shortcut key for this, use a macro instead. You can assign the small macro below to, for example, the <Ctrl+H> key to toggle highlighting on for the selected item. Tips: To copy this macro into your own WordPerfect see here. For help assigning macros to keystroke combinations ("shortcut keys") see here. Note: If you use the Redaction Tool in the initial release of WordPerfect X4, here are some tips (click here for the PDF version) when using normal highlighting (Tools, Highlight) in the same document that is marked up for redaction (Tools, Redaction).
Finally, note that redline or strikeout formatting (not to be confused with similar effects produced during a file Compare or Review) are not assigned to any standard shortcut key. However, they can be assigned to one using the "Attribute Redline" and "Attribute Strikeout" choices in the Format feature list, found in the keyboard editor's Keyboard Shortcuts window. Assigning them to <Alt+Ctrl+R> and <Alt+Ctrl+S> or other preferred keys might be handy. Since they do not require that the item be selected first, no macro such as Highlight Toggle above is needed. For help assigning macros to keystroke combinations ("shortcut keys") see here. |
||