setCtlProperties

Syntax

int setCtlProperties(int n, int properties)

Arguments

n
The index of the control whose properties you wish to change.
properties
The properties you wish to set in the control.

Return

Returns an integer with the previous properties before they were change by the function, or -1 if the control number is out of range or if the control doesn't exist.

Description

This function sets the properties of a control. The properties to be set should be specified in the second argument. To remove a property from a control, use clearCtlProperties.

The following properties are available:

Example

// Enable tracking for this control
setCtlProperties(6, CTP_TRACK);

See Also

clearCtlProperties