OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Jim Short on July 29, 2018, 08:15:01 AM

Title: Text box would not highlight
Post by: Jim Short on July 29, 2018, 08:15:01 AM
Two text boxes and two events checked active in OpenDCL.
Only one event defun placed in lisp code.

The textbox placed in lisp code behaved as if it couldn't accept Focus. Focus worked fine when using the tab button but when clicking on the text box it acted like it was going to highlight and then not.

After adding the other defun in the lisp code, event worked like it should.

(defun c:ControlName#OnSetFocus (/)
   ;highlight or select entire box
   (dcl-TextBox-SetSel ControlName 0 -1 t)
)