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

The standard way to interpret the information returned by an event is to refer to the documentation for the VBX control.

Failing that, TVbxControl provides a number of methods for obtaining information about an event.

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

You can find the name of any event in this range by calling the TVbxControl member function GetEventName, which takes one parameter, an int index number, and returns a string containing the name of the event. Conversely, you can find the index of an event by calling the TVbxControl member function TVbxControl::GetEventIndex, which takes one parameter, a string containing the event name, and returns the corresponding int event index.

See Also