Previous Topic Next topic Print topic


Selecting Text and Line Numbers

Buttons that require a text string or line number operate in "quick" mode if the text or line number is selected prior to the button selection.

Note that on some systems, double-clicking causes the next blank-delimited text string to be selected. In this case, both a text and line number have been selected, and CodeWatch will use each appropriately for upcoming button selections.

For example, suppose you wish to Break on line 27. Use the scroll bar in the source window to move line 27 into view (if necessary), double-click anywhere on line 27, and then click the Break button. Clicking the Break button without having previously selected a line would have resulted in the Edit/Confirm mode being used.

Since the Breakpoint command (usually) requires a line number, clicking on Edit in the popup menu will place the cursor in the Edit-line. Press Return to execute the final command.

Similarly, for commands that operate on text strings, selecting text as described above and clicking a button will cause the selected text to be used as an argument to the command. For example, selecting the text string "count" from the Source window and clicking the Evaluate button will cause the variable name "count" to be evaluated in the current environment.

Thus, selecting text and line numbers for use in conjunction with buttons (and in fact, any command selected from the Command Menu in the menu bar), is actually a shorthand way of entering commands via the Edit-line.

Previous Topic Next topic Print topic