Important: The information in this document is obsolete and should not be used for new development.
GetAuxiliaryControlRecord
Use theGetAuxiliaryControlRecord
function to get a handle to a control's auxiliary control record. TheGetAuxiliaryControlRecord
function is also
available as theGetAuxCtl
function.
FUNCTION GetAuxiliaryControlRecord (theControl: ControlHandle; VAR acHndl: AuxCtlHandle) : Boolean;
theControl
- A handle to a control.
acHndl
- A handle to the auxiliary control record for the control.
DESCRIPTION
In itsacHndl
parameter, theGetAuxiliaryControlRecord
function returns a handle to the auxiliary control record for the specified control. Your application typically doesn't need to access an auxiliary control record unless you need itsacRefCon
field, which your application can use for any purpose.The value that
GetAuxiliaryControlRecord
returns for a function result depends on the control's color control table, as described here:
- If your application has changed the default control color table for the given control (either by using the
SetControlColor
procedure or by creating its own control color table), the function returnsTRUE
.- If your application has not changed the default control color table, the function
returnsFALSE
.- If you set the parameter
theControl
toNIL
, the Dialog Manager ensures that
the control uses the default color table, and GetAuxiliaryControlRecord
returnsTRUE
.