Important: The information in this document is obsolete and should not be used for new development.
SetControlReference
To change a control's current reference value, use theSetControlReference
procedure. TheSetControlReference
procedure is also available as theSetCRefCon
procedure.
PROCEDURE SetControlReference (theControl: ControlHandle; data: LongInt);
theControl
- A handle to the control whose reference value you wish to change.
data
- The new reference value for the control.
DESCRIPTION
TheSetControlReference
procedure sets the control's reference value to the value you specify in thedata
parameter.When you create a control, you specify an initial reference value, either in the
control resource or in therefCon
parameter of theNewControl function.
The
reference value is stored in thecontrlRfCon
field of the control record; you can
use theGetControlReference
function to determine the current value. You
can use this value for any purpose.