程序:- (DEFUN C:TEST ()
- (IF (> (SETQ DCL_ID (LOAD_DIALOG "TEST")) 0)
- (IF (NEW_DIALOG "test" DCL_ID "") (PROGN
- (action_tile "test" "(SETQ TS $value) (togscr)")
- (action_tile "accept" "(DONE_DIALOG 1)")
- (action_tile "cancel" "(DONE_DIALOG 0)")
- (SETQ RE (START_DIALOG))
- ) (PROGN
- (ALERT "Unable to display dialog box!\n无法显示对话框!")
- (UNLOAD_DIALOG DCL_ID)
- ))
- (ALERT "Unable to load dialog box!\n无法装载对话框!")
- )
- )(defun togscr ()
- (if (= ts "a") (mode_tile "c" 1) (mode_tile "c" 0))
- )
对话框- dcl_settings : default_dcl_settings { audit_level = 3; }
- test : dialog {
- : radio_row {
- value = "b" ;
- key = "test" ;
- : radio_button {
- key = "a" ;
- label = "a" ;
- }
- : radio_button {
- key = "b" ;
- label = "b" ;
- }
- }
- : button {
- key = "c" ;
- label = "c" ;
- }
- ok_cancel ;
- }
|