- test:dialog{
- :list_box{
- label = "列表";
- key = "list1";
- }
- :edit_box{
- label = "选中";
- key = "edit1";
- }
- ok_cancel;
- }
- (defun c:test( / dcl_id lst)
- (setq dcl_id (load_dialog "tmp.dcl"))
- (new_dialog "test" dcl_id)
- (setq lst '("A" "B" "C" "D" "E" "F"))
- (start_list "list1")
- (mapcar 'add_list lst)
- (end_list)
- (action_tile "list1" "(set_tile "edit1" (nth (atoi (get_tile "list1")) lst))")
- (start_dialog)
- (unload_dialog dcl_id)
- (princ)
- )
|