Text box would not highlight

Started by Jim Short, July 29, 2018, 08:15:01 AM

Previous topic - Next topic

Jim Short

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)
)
Jim Short