(sd-defdialog
....
(push-1 ...
push-action (progn
(sd-set-variable-status 'bool-1 :visible t)
(sd-set-variable-status 'bool-2 :visible t)
(sd-set-variable-status 'bool-3 :visible t)
))
(push-2 ...
push-action (progn
(sd-set-variable-status 'bool-1 :visible t)
(sd-set-variable-status 'bool-2 :visible t)
(sd-set-variable-status 'bool-3 :visible nil)
))
(bool-1 ... :initial-visible nil)
(bool-2 ... :initial-visible nil)
(bool-3 ... :initial-visible nil)
...
:mutual-exclusion '(bool-1 bool-2 bool-3)
STEP1 (init)
push-1 set to 1 -->bool-1 bool-2 bool-3 sind :visible
und wegen :mutual-exclusion bool-1 ist :auto set to 1
STEP2
push-2 set to 1 -->NUR bool-1 bool-2 sind :visible
STEP3
1) -->push-1 set to 1 DANN bool-3 set to 1 :--> OK
STEP4
1) -->push-2 set to 1 --> bool-3 NICHT MEHR :visible ABER :value=1 wegen STEP3
und mit push-2 ich moeschte gern haben bool-1 :value 1
Ich hatte gedacht,dass
vieilleicht koenne wir so was schreiben :
push-2
push-action
(progn
??? :mutual-exclusion '(bool-1 bool-2 bool-3)
;; also bool-1 nocheinmal activ
)
Sonst habe ich schon ein "tricks" geschrieben :
(sd-set-variable-status 'bool-1 :value 1)(setq bool-2 nil)(setq bool-3 nil)
Ich hoffe es ist Klar gewesen.
Thanks
MD
[Diese Nachricht wurde von mdonmez am 18. Nov. 2005 editiert.]
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP