ObjectDCL Banner

OnSize Event

Description

Indicates the form has been resized.

Parameters

nWidth
Integer identifying the new width in pixels.
nHeight
Integer identifying the new height in pixels.

AutoLISP Syntax

Each dialog that throws this event has its handler that takes this generic form:

CopyCode imageCopy Code
(defun c:FormName_OnSize (nWidth [as Integer] nHeight [as Integer] /)
     
)

Applies For

Dockable, FileDialog, Modal, Modeless.

Example

CopyCode imageCopy Code
; React to the dialog that was resized
(defun c:MyForm_OnSize (nWidth nHeight /)
     (princ "OnSize(")
     (princ nWidth)
     (princ ",")
     (princ nHeight)
     (princ ")\n")
)

See Also

AllowResizing, Form_Resize