vlr-mouse-reactor


(vlr-mouse-reactor customData callbackList)

This function creates and attaches a Mouse operation reactor to the current drawing, for the command events specified by callbackList.

Arguments

customData  (any valid Lisp data) custom data to be associated with the reactor object, can be NIL
callbackList  (list)  list of DottedPair entries, each DottedPair has the form
(event . callback)

event : one of these symbolic constants


:vlr-beginDoubleClick

a left-button doubleclick has been done


:vlr-beginRightClick

a right-button click has been done


callback : the client Lisp side callback function, using 2 arguments :
(defun MyCB ( reactor args / ...) ...)

reactor : the mouse reactor object - #<VLR-Mouse-Reactor>
args : (list) contains 1 argument always :


:vlr-beginDoubleClick
:vlr-beginRightClick

1 argument (list) :
3D point list, in WCS, specifies the point where the mouse click happened

Return

the reactor object #<VLR-Mouse-Reactor> or NIL

Example


Remarks




©  Bricsys NV. All rights reserved.