| |
 |
| Action Object |
| Allows for execution of user Tcl/Tk code at run time. |
|
Examples
Tutorial 6
Summary
The action object provides a text widget where your Tcl/TK code is evaluated at run time. The Tcl/Tk code
is evaluated in a separate tcl interpreter from RAD. This guarantees that your variables and procedures
will not to conflict with the operation of RAD.
RAD includes many useful procedures with functions ranging from Web page editing to pronunciation look up.
These procedures are outlined in the "Included Procedures" documentation.
The "user" interpreter executes Tcl/TK code in the action boxes where as the "tcl" interpreter executes Tcl/TK
code for RAD. You can execute commands in either environment by prefacing a command with the name of the
interpreter. However, only the procedures provided in the "user" environment will be protected from version
changes and updates. All code within the tcl environment is subject to change.
Learn about interpreters from your favorite Tcl/TK manual.
|
Details
|
This example of Tcl/TK code is evaluated in the 'user' interpreter when the dialog passes this action
object at run time.
|
|
Context Menu
|
| Properties... |
Opens the properties dialog. |
| Cut |
Deletes object and copies it to the clipboard |
| Copy |
Copies the object to the clipboard |
| Delete |
Deletes the object |
| Rename |
Renames the object. |
|
|