- (defun mkdcl(str / dclF Fid dcl)
- (write-line(apply'strcat(if(listp str)str(list str)))
- (setq dclF(vl-filename-mktemp nil nil ".dcl")Fid(open dclF "w")))
- (close Fid)
- (setq dcl(load_dialog dclF))
- (vl-file-delete dclF)dcl)
- (defun c:tt( / dcl lst l)
- (setq dcl(mkdcl'("ABC:dialog{:list_box{key="1";multiple_select=true;}ok_only;}"))
- lst'("A""B""C""D""E"))
- (new_dialog"ABC"dcl)
- (start_list"1")(vl-every(function add_list)lst)(end_list)
- (action_tile"accept""(setq l(get_tile"1"))(done_dialog 1)")
- (if(=(start_dialog)1)
- (mapcar(function(lambda(x)(nth x lst)))
- (read(strcat"("l")")))))
(read(strcat"("(get_tile list_box_name)")")) |