[Next] [Previous] [Up] [Top] [Contents] [Index]
Chapter 13. Graphic Environment Resources
13.1 Introduction
In order for your extension to show up and be usable in PsyScope's graphic environment, a few special resources must be created and kept with the PSYX code. These resources describe to PsyScope the various items that your PSYX needs to have displayed in the graphic environment. ResEdit `TMPL' templates are provided to make creating these resources easy.
- Output devices need an `evnt' resource, which describes how objects of that event type look in the Design and Template windows, as well as the content of the Stimulus Attributes dialog for that event type.
- Input devices need a `inpt' resource, which describes how the input masks for this input type will appear in the "Duration" and "Condition/Action" dialogs, and provides a name an icon to appear in the "Input Devices" dialog.
- Timers will have a `timr' resource, which provides a name and icon for the "Timers" dialog.
- Actions need an `actn' resource, which provides an icon for the "Conditions/Actions" dialog, and describes the parameter list of the action for the Action dialog.
The names of the above resources should be the same as the extension they are representing.
The `expa' resource type is used to specify experiment attributes; the name of each should be the same as the attribute it represents. The `eflg' resource type is used to specify flags for the "Flags" experiment attribute; the name of each should be the same as the value to be written in the script for that flag.
The `attr' resource type is used with the `expa', `evnt' and `actn' types to describe the specifics of an experiment attribute, stimulus attribute, or action parameter, and should be given a unique name.
PSYX Programmer's Manual - 24 AUG 95
[Next] [Previous] [Up] [Top] [Contents] [Index]
Generated with CERN WebMaker