vlr-mouse-reactor

AutoCad AutoLISP Functions

 
vlr-mouse-reactor
 
 
 

Constructs an editor reactor object that notifies of a mouse event (for example, a double-click)

(vlr-mouse-reactor data callbacks)

Arguments

data

Any AutoLISP data to be associated with the reactor object; otherwise nil if no data.

callbacks

A list of pairs of the following form:

(event-name . callback_function)

where event-name is one of the symbols listed in the “Mouse reactor events” table below, and callback_function is a symbol representing a function to be called when the event fires. Each callback function accepts two arguments:

reactor_object The VLR object that called the callback function.

list A list of extra data elements associated with the particular event. The contents of this list for particular events are shown in the “Mouse reactor callback data” table.

Return Values

The reactor_object argument.

Mouse reactor events

Event name

Description

:vlr-beginDoubleClick

The user has double-clicked.

:vlr-beginRightClick

The user has right-clicked.

Mouse reactor callback data

Name

List length

Parameters

:vlr-beginDoubleClick

:vlr-beginRightClick

1

A 3D point list (list of 3 reals) showing the point clicked on, in WCS.