coroto
10-06-2005, 06:50 PM
Hello,
I have an issue with the behavior of some supposedly mutually-exclusive variables in an sd-defdialog (OSDM 13.20A). In the attached lisp file, I have defined a very simple dialog which does not behave as I expect.
The problem is that the :mutual-exclusion status of the 3 boolean variables A_PART, B_PART and C_PART is not respected when the value of the Boolean is set by the code rather than the person clicking the mouse.
I would expect that after the user types in a value for Name No. 1 that the “A Type” button would be ON and the other two of the mutually-exclusive set would be turned off. Apparently, the (sd-set-variable-status ‘a_part :value t) does NOT behave the same as if a person clicked the Type A button in the dialog.
I used sd-set-variable-status instead of setq because it’s supposed to be more complete in doing the right things (like using the :check-function if any and also executing the :after-input code). I would expect the behavior with sd-set-variable-status setting the value to be equivalent to a user poking the button.
What use is the :mutual-exclusion if it only works with user clicks? I would have to manage the on/off states manually in the after-input code of each.
Please have a look at this and let me know if this appears to be a defect, or whether I just don’t understand the “correct” behavior, or what….
I have an issue with the behavior of some supposedly mutually-exclusive variables in an sd-defdialog (OSDM 13.20A). In the attached lisp file, I have defined a very simple dialog which does not behave as I expect.
The problem is that the :mutual-exclusion status of the 3 boolean variables A_PART, B_PART and C_PART is not respected when the value of the Boolean is set by the code rather than the person clicking the mouse.
I would expect that after the user types in a value for Name No. 1 that the “A Type” button would be ON and the other two of the mutually-exclusive set would be turned off. Apparently, the (sd-set-variable-status ‘a_part :value t) does NOT behave the same as if a person clicked the Type A button in the dialog.
I used sd-set-variable-status instead of setq because it’s supposed to be more complete in doing the right things (like using the :check-function if any and also executing the :after-input code). I would expect the behavior with sd-set-variable-status setting the value to be equivalent to a user poking the button.
What use is the :mutual-exclusion if it only works with user clicks? I would have to manage the on/off states manually in the after-input code of each.
Please have a look at this and let me know if this appears to be a defect, or whether I just don’t understand the “correct” behavior, or what….