OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Finding property information

The standard way to get information about a control's properties is to refer to the documentation for the VBX control.

Failing that, TVbxControl provides a number of methods for obtaining information about a control's properties.

You can find the total number of properties for a control by calling the TVbxControl member function TVbxControl::GetNumProps, which returns an int that gives the total number of properties. These properties are indexed from 0 to the return value of GetNumProps - 1.

You can find the name of any property in this range by calling the TVbxControl member function TVbxControl::GetPropName, which takes one parameter, an int index number, and returns a string containing the name of the property.

Conversely, you can find the index of an property by calling the TVbxControl member function TVbxControl::GetPropIndex, which takes one parameter, a string containing the property name, and returns the corresponding int property index.

See Also