2018-02-22 16:18 UTC
When one was several text boxes on a form, many event calls are possible to provide detailed control of what user sees, and how user interacts with them.
This requires lisp to provide many similar event defuns. I have been looking at to write one master function to handle the same event for four boxes. The followings does not work but gives the idea:
;;;(setq
;;; zones
;;; '("FeedZone""StartZone""RoughZone""FinishZone")
;;; )
;;; (foreach z zones
;;; (defun-q-list-set
;;; (read (strcat "c:uMill/WorkZones/tb" z "#OnSetFocus"))
;;; '(
;;; ()
;;; (dcl-TextBox-SetSel
;;; (read (strcat "c:uMill/WorkZones/tb" z))
;;; 0
;;; -1
;;; t
;;; )
;;; )
;;; )
;;; )
Has anyone succeeded with something like this?
Thanks,
Jim
This requires lisp to provide many similar event defuns. I have been looking at to write one master function to handle the same event for four boxes. The followings does not work but gives the idea:
;;;(setq
;;; zones
;;; '("FeedZone""StartZone""RoughZone""FinishZone")
;;; )
;;; (foreach z zones
;;; (defun-q-list-set
;;; (read (strcat "c:uMill/WorkZones/tb" z "#OnSetFocus"))
;;; '(
;;; ()
;;; (dcl-TextBox-SetSel
;;; (read (strcat "c:uMill/WorkZones/tb" z))
;;; 0
;;; -1
;;; t
;;; )
;;; )
;;; )
;;; )
Has anyone succeeded with something like this?
Thanks,
Jim