Reference Manual - Table of Contents

Execution Control
Forms and Windows
Controls
Menus
System and Desktop
Graphic Drawing Commands

Animation
QuickTime Movies
Speech
Sound
File I/O
Printing
Serial Ports

Math Functions
String Functions
Date and Time
Memory Buffers
Error Handling
Console Text Window

Events

Direct Memory Access
Direct Mouse Access
Direct Keyboard Access
Code Resource Modules

A - Runtime Error Messages
B - Compiler Error Messages

Events

Command Summary:
Events status
SetCmdKey
char, Sub

Function Summary:
var = EventCode( code )

 

Events status

This command can set the frequency (1-10) or disable event checking (0). By temporarily disabling events you can speed critical processing. The default value is 1 which sets event checking on but less frequent.

The maximum setting is 10 which will cause event checking to occur very frequently. Note that a higher the setting is the slower your application is liekly to run.

SetCmdKey char, Sub

This command sets a command key to call a Sub procedure or clears an existing definition.

var = EventCode( code )

This function returns a numeric value that represents the event codes that caused a Sub procedure to be called. This is usually used in a Sub procedure that was called by MacStandardBasic in response to an event such as a mouse click in a contro1, window, or menu.

EventCode Return Values