|
Obsolete IDL Features: IDLDrawWidget Control Reference |
|
Auto events are IDL procedures that are called automatically by the control in response to certain events.
An IDL procedure that will be called when a mouse button is pressed. The procedure must be in the form:
pro button_press, drawId, button, xPos, yPos
The default value is NULL.
An IDL procedure that will be called when a mouse button is released. The procedure must be in the form:
pro button_release, drawId, button, xPos, yPos
The default value is NULL.
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:
pro button_dblclick, drawId, button, xPos, yPos
The following table describes each parameter of the syntax:
The default value is NULL.
An IDL procedure that will be called when an expose message is received by the draw widget. The procedure must be in the form:
pro expose, drawId
The default value is NULL.
An IDL procedure that will be called when a draw widget is initially created. The procedure must be in the form:
pro init, drawId, baseId
This auto event procedure is called once when the CreateDrawWidget method is invoked.
The default value is NULL.
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:
pro motion, drawId, button, xPos, yPos
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. |
IDL Online Help (March 06, 2007)