I know what you are saying ; but you will find you'll get a better quality of response if you are seen to make the effort. AS it was 'someone' ( well, several someones) would need to build their own sample to test and prove a solution.
thanks! fortunately that makes perfect sense, I'll keep that in mind whenever I post.
Regarding your solution:
I can't see how that setq will resolve your problem as originally posted ... mainly because I can't imagine what your code looked like.
Nor can anyone else who potentially finds this thread while searching for a similar issue.
Regards,
I tried many things from some webpages but don't remember right now as I deleted them.
I'm going to try to explain my last effort and what I think that setq line solved.
;;; this is the version of code I thought would work
;here I wanted to enable the edit_box "inf2"
;whenever the item "0" of the popup_list "info_lst" was selected
(defun greyt (info_lstr)
(if (= "0" info_lstr) ;info_lstr was defined before in the code in this function:
; (defun ad2 ()
;>>>>>>>(setq info_lstr (get_tile "info_lst")) "info_lst" is the key of the popup list
; );ad2
(mode_tile "inf2" 0)
(mode_tile "inf2" 1)
);if
);defun greyt
(action_tile "info_lst" "(greyt info_lstr)")
;as I understand it the problem with this ideia was that the value of the popup list
;to be checked for disabling the edit_box was only retrieved when exiting the dialog
;in this line bellow, so the function greyt couldn't check the value.
(action_tile "accept" "(setq ddiag 2)(ad2)(done_dialog)");note the call for the (ad2) function
;that is why I added the (setq info_lstr (get_tile "info_lst")) to the greyt function
(defun greyt (info_lstr)
(setq info_lstr (get_tile "info_lst")) ;<- <- <- <- <-
(if (= "0" info_lstr)
(mode_tile "inf2" 0)
(mode_tile "inf2" 1)
);if
);defun greyt
;so that whenever I use the "info_lst" popup_list the function greyt is
;called to check which item is selected to disable or enable the edit_box
(action_tile "info_lst" "(greyt info_lstr)")
I hope this can help someone, I tried to be as succint as I could. At least I tried my best