The features described in this topic are obsolete
and should not be used in new IDL code.
Auto Event Properties
Auto events are IDL procedures that are called automatically by the control in response to certain events.
OnButtonPress
An IDL procedure that will be called when a mouse button is pressed. The procedure must be in the form:
The default value is NULL.
OnButtonRelease
An IDL procedure that will be called when a mouse button is released. The procedure must be in the form:
The default value is NULL.
OnDblClick
An IDL procedure that will be called when a mouse button is double clicked within the draw widget. The procedure must be in the form:
The following table describes each parameter of the syntax:
The default value is NULL.
OnExpose
An IDL procedure that will be called when an expose message is received by the draw widget. The procedure must be in the form:
The default value is NULL.
OnInit
An IDL procedure that will be called when a draw widget is initially created. The procedure must be in the form:
This auto event procedure is called once when the CreateDrawWidget method is invoked.
The default value is NULL.
OnMotion
An IDL procedure that will be called when the mouse is moved over the draw widget while a mouse button is pressed. The procedure must be in the form:
The default value is NULL.
Note
Motion events may be generated continuously in response to certain operations in IDL. As a result, if you provide an event-handler for mouse motion events, your event handler should check the reported position of the mouse to determine whether it has in fact moved before doing extensive processing.