- (defun c:test()
- (setq f (vl-filename-mktemp "test.dcl"))
- (setq of (open f "w"))
- (write-line "test : dialog {" of)
- (write-line "label = "试验" ;" of)
- (write-line ":button {key = "m"; label = "文字样式";}" of)
- (write-line "ok_only;" of)
- (write-line "}" of)
- (close of)
- (setq dcl_id (load_dialog f))
- (new_dialog "test" dcl_id)
- (action_tile "m" "(done_dialog 2)")
- (action_tile "accept" "(done_dialog 1)")
- (SETQ DD(start_dialog))
- (IF (= DD 2)(T1))
- (unload_dialog dcl_id)
- (vl-file-delete f)
- )
- (DEFUN T1()
- (vl-cmdf "_.STYLE"))
|