ObjectDCL Banner

OnPaint Event

Description

Indicates control needs to be repainted.

Parameters

nHasFocus
Boolean identifying whether the control has the focus.

AutoLISP Syntax

The event handler takes this generic form for most combobox types:

CopyCode imageCopy Code
(defun c:FormName_ControlName_OnPaint ()
     
)

Applies For

PictureBox, SlideView.

Example

CopyCode imageCopy Code
; React to the control being painted
(defun c:MyForm_MyControl_OnPaint (nHasFocus / )
     (princ "OnPaint(")
     (princ nHasFocus)
     (princ ")\n")
)