Contents Previous Next Subchapters

Editor Windows

Description
Editor windows function similarly to the Notepad program that is part of Microsoft Windows. You can use them to create, edit, and save ASCII text files. Because O-Matrix uses text files as its programs, you can use these editors to create such programs.

New Editor Windows
Many of the editor window functions reside under the File and Edit menu items. Selecting File | Edit New Program will bring up a window titled "Untitled". (You can also use the blank page icon discussed in the toolbar section for this purpose.)

Entering Text
Once you have opened a new editor window, you can type commands directly into the file without the immediate interpretation you would receive from the O> prompt. For example, if you enter the following data into an editor window



O-Matrix will not execute the commands.

Executing Programs
You can execute the program with the File | Run Program menu item. If you continue the example above by selecting File | Run Program while the editor window is active, O-Matrix will ask if you wish to save the file. If you select No, O-Matrix will respond:



in the Command window. (If the Command window is covered up, you can use the Windows menu item to bring it into view. You can also use the lighting bolt icon discussed in the toolbar section to execute the current edit window.)

Saving Programs
To save this program select the File | Save As menu item, choose the Save Current Edit Window radio button, select the Select File Name button, and then choose a file name C:TEMP.OMS in the PROGRAMS subdirectory. (You can also use the floppy disk icon discussed in the toolbar section to save the current edit window.)

Editing Existing Files
You can open an existing ASCII text file by selecting the File | Open Program menu item. You can also use this option to edit any ASCII file. On the other hand, only O-Matrix programs will work correctly if you then select the File | Run Program menu item. (You can also use the file folder icon discussed in the toolbar section to open an existing file.)

Editing Functions
In any of the editor windows, the Cut, Copy, and Paste commands from the Edit window can be used, and work as they do in other Windows text editors: "Cut" removes highlighted text from the editor and places it onto the Clipboard, from which it can be retrieved with the "Paste" command. "Copy" also puts highlighted text into the Clipboard, but does not delete the text from the current editor window.

Printing
To print the contents of the current editor window, select the File | Print menu item, choose the Print Current Editor radio button, and then select Print.