You can search one or more CUI files for commands or search strings (including command or UI element names, descriptions, and macros). You can also replace commands or search strings one at a time or all at once.
You can limit or expand your search depending on the search results you want to achieve.
■ Limit the search to commands located in the Command List pane. This search does not include the names of UI elements, the commands that are associated to them, and their properties. For example, if you limit the search for the LINE command in the Command List only, a message similar to the following is displayed when you start your search: “Command found in tree node 'Line' (1/3).”
■ Expand the search to include all properties in all tree view nodes in the Customizations In pane. This type of search finds all instances or a search string. For example, if you search for the search string “line” and start in the tree view, a message similar to the following is displayed: “Search string found in tree node 'Linear' property 'Name' at position 0 (1/358).” To find a search string in a CUI file
1 Click Tools menu ➤ Customize ➤ Interface.At the Command prompt, enter cui.
2 In the Customize User Interface editor, right-click anywhere in the tree view of the Customizations In <file name> pane. Click Find.
3 In the Find and Replace dialog box, Find tab, do the following: ■ In the Find What box, enter the search string.
■ In the Ignore Case option, clear the check box if you want the search to find every instance of the search string regardless of its case.
■ In the Restrict Search To option, select the check box if you want to restrict the search to just one CUI file. Then, under this option, select a CUI file from the drop-down list.
■ Click Find Next to locate all instances of the search string.
A message is displayed that details the location of the search string and the number of results generated from the search.
4 Click Find Next to continue your search. 5 Click Close.
To find a search string in the Command List pane
1 Click Tools menu ➤ Customize ➤ Interface.At the Command prompt, enter cui.
2 In the Customize User Interface editor, right-click anywhere in the list view of the Command List pane. Click Find.
3 In the Find and Replace dialog box, Find tab, do the following: ■ In the Find What box, enter the search string.
■ In the Ignore Case option, clear the check box if you want the search to find every instance of the search string regardless of its case.
■ In the Restrict Search To option, select the check box if you want to restrict the search to just one CUI file. Then, under this option, select a CUI file from the drop-down list.
■ Click Find Next to locate all instances of the search string.
A message is displayed that details the location of the search string and the number of results generated from the search.
4 Click Find Next to continue your search. 5 Click Close.
6 In the Customize User Interface editor, click Close.
To find where a command in the Command List pane is used
1 Click Tools menu ➤ Customize ➤ Interface.At the Command prompt, enter cui.
2 In the Customize User Interface editor, Command List pane, right-click the command name you want to find. Click Find.
3 In the Find and Replace dialog box, Find tab, do the following: ■ In the Find What box, enter the command name.
■ In the Ignore Case option, clear the check box if you want the search to find every instance of the search string regardless of its case.
■ Click Find Selected Command to locate all instances of the command.
4 In the text that is displayed, view each location of the command or search string, its exact position in the tree node or Properties pane, and the number of instances in which the command or search string occurs. 5 Click Find Selected Command to continue your search.
6 Click Close.
To replace a search string
1 Click Tools menu ➤ Customize ➤ Interface.At the Command prompt, enter cui.
2 In the Customize User Interface editor, Customize tab, Customizations In <file name> pane, right-click anywhere in the tree view. Click Replace.
3 In the Find and Replace dialog box, Replace tab, do the following: ■ In the Find What box, enter the search string.
■ In the Replace With box, specify the text string you want to use to replace the found string.
■ In the Ignore Case option, clear the check box if you want the search to find every instance of the search string, regardless of its case.
■ In the Restrict Search To option, select the check box if you want to restrict the search to just one CUI file. Then, under this option, select a CUI file from the drop-down list.
■ To step through each instance of a found string before replacing it, click Replace. In the text that is displayed, view each location of the search string, its exact position in the tree node or Properties pane, and the number of instances in which the search string occurs. You cannot undo this action.
■ To replace all instances of the search string, click Replace All. You cannot undo this action.
4 Click Close.
5 In the Customize User Interface editor, click Close. To replace a command
1 Click Tools menu ➤ Customize ➤ Interface.At the Command prompt, enter cui.
2 In the Customize User Interface editor, Customize tab, Command List pane, right-click the command name you want to replace. Click Replace.
3 In the Find and Replace dialog box, Replace tab, in the Find What box, the command name you selected in the previous step is displayed. To complete the dialog box, do the following:
■ In the Replace With box, specify the command name you want to use to replace the found command.
■ In the Ignore Case option, clear the check box if you want the search to find every instance of the command, regardless of its case.
■ To step through each instance of a command name before replacing it, click Replace. In the text that is displayed, view each location of the command, its exact position in the tree node or Properties pane,
and the number of instances in which the command occurs. By renaming the command in the command list, you rename the command everywhere that command is used in the CUI file. You cannot undo this action.
■ To replace all instances of the command, click Replace All. You cannot undo this action.
4 Click Close.
5 In the Customize User Interface editor, click Close.
Quick Reference
Commands
CUI
Manages customized user interface elements such as workspaces, toolbars, menus, shortcut menus and keyboard shortcuts