vlr-window-reactor


(vlr-window-reactor customData callbackList)

This function creates and attaches a Window 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-docFrameMovedOrResized

a document window was moved and/or resized


:vlr-mainFrameMovedOrResized

the main window was moved and/or resized


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

reactor : the window reactor object - #<VLR-Window-Reactor>
args : (list) contains 1 or more arguments depending on the particular event :


:vlr-docFrameMovedOrResized
:vlr-mainFrameMovedOrResized

2 arguments
1st argument : (integer) the HWND window handle of the affected window
2nd argument : (symbol T/NIL) : T indicates a moved window, NIL indicates a resized window

Return

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

Example


Remarks




©  Bricsys NV. All rights reserved.