Macro Language Reference > Macros > Document > ttagedit
  
ttagedit
Description
Invokes the Stream Editor modeless dialog box and permits the user to edit any given stream in a document
Syntax
ttagedit ID:n? strm name:s? var:s? x:n? y:n? z:n
ttagedit
[no parameter]
Invoke the Stream Editor modeless dialog
ID
The ID number of the target dialog
strm name
The name of the stream to be loaded
var
The name of variable that will store the return value
x
0
Disable cursor link for the given dialog
1
Enable cursor link for the given dialog
2
Toggle cursor link on/off for the given dialog
y
3
Open a stream with cursor link disabled.
4
Open a stream with cursor link enabled.
5
Open a stream with no cursor link change
 
If 5 is specified without the ID parameter, it acts as 4.
z
6
Return current cursor position in the given dialog.
7
Return current selection end in the given dialog.
Additional Information
The Stream Editor is a modeless dialog containing a text field and various controls, through which the user may edit any given stream in a document. The editor presents a Windows-based interface including all the standard keystrokes, features and functionality of an editor such as Notepad.
The dialog displays the following functions as options:
New: allows the user to create a new stream without leaving the Stream Editor interface.
Get: loads the current active stream from the document window into the current Stream Editor window
Put: makes the document window stream match the current Stream Editor stream.
Run: only available for script tag types (currently .sc and .pl). It will run the current stream as a script when clicked.
Link: allows the user to toggle the cursor link option on or off.
When a Stream Editor window is marked as being cursor linked, the cursors in the document window and Stream Editor window will stay synchronized if the streams match. As you type or move around a cursor linked Stream Editor, the cursors on the yellow bar and WYSIWYG will follow and the typed text will appear and vice versa. When not cursor linked, the WYSIWYG and yellow bar will not reflect changes made in the stream editor until a manual refresh has been carried out via trf: wdr.
The Stream Editor interface provides a clean and simple environment in which to work with PTC ALD streams. The user may select a stream to edit from the editable combo box and can filter the list of streams by using the first combo box to select the types of streams to view.
Related Links