Carbon


ControlTrackingRec

Header: Controls.h

struct ControlTrackingRec {
    Point startPt; 
    EventModifiers modifiers; 
    ControlActionUPP action;
};
typedef ControlTrackingRec ControlTrackingPtr;

Field descriptions

startPt

The location of the cursor at the time the mouse button was first pressed, in local coordinates. Your application retrieves this point from the where field of the event structure.

modifiers

The constant in the modifiers field of the event structure specifying the state of the modifier keys and the mouse button at the time the event was posted.

action

A pointer to an action function defining what action your application takes while the user holds down the mouse button. The value of the actionProc parameter can be a valid procPtr, NULL, or -1. A value of -1 indicates that the control should either perform auto tracking, or if it is incapable of doing so, do nothing (like NULL).


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)