0 Members and 1 Guest are viewing this topic.
It works counter to one's intuition, mode_tile 0 = enabled, 1 = disabled, e.g. (mode_tile "key" 0) ;; enabled.
(action_tile "radio_button_1" "(mode_tile \"text_box_1\" (atoi $value))")
(action_tile "radio_button_1" "(mode_tile \"text_box_1\" (- 1 (atoi $value)))")
It works counter to one's intuition...
(action_tile "radio_button_ON" "(mode_tile \"text_box_1\" 0)")(action_tile "radio_button_OFF" "(mode_tile \"text_box_1\" 1)")
(action_tile "optYes" "(setq strYes 1) (UpdateTextBoxes))")(action_tile "optNo" "(setq strYes 0) (UpdateTextBoxes))")
(defun UpdateTextBoxes ( / ) (if (= strYes 1) (progn (mode_tile "txtLength" 1) (mode_tile "txtWidth" 1) ) (progn (mode_tile "txtLength" 0) (mode_tile "txtWidth" 0) ) ))
(action_tile "optYes" "(UpdateTextBoxes 1)")(action_tile "optNo" "(UpdateTextBoxes 0)")
(defun UpdateTextBoxes ( strYes ) (mode_tile "txtLength" strYes ) (mode_tile "txtWidth" strYes ))
PS: Ib4 Lee.