Hello,
Following the example joint, I choose all the list and I do find that a maximum of 256 elements of the selection (variable sel).
Is there a trick to overcome these 256 ?
(defun c:test(/ fic fil n txt)
(setq fil (vl-filename-mktemp "tmp.dcl")
fic (open fil "w")
)
(foreach txt '("test : dialog {"
"key = \"titre\";"
"is_cancel = true;"
"width = 20;"
": list_box {label = \"Test\"; key= \"sel\"; height = 30; multiple_select=true;}"
"spacer;"
"ok_cancel;"
"}"
)
(write-line txt fic)
)
(close fic)
(setq fic (load_dialog fil))
(new_dialog "test" fic "")
(start_list "sel")
(setq n -1)
(repeat 500
(add_list (itoa (setq n (1+ n))))
)
(end_list)
(action_tile "sel" "(setq sel $value)")
(action_tile "accept" "(done_dialog)")
(action_tile "cancel" "(done_dialog)")
(start_dialog)
(unload_dialog fic)
(vl-file-delete fil)
sel
)
Thanks
@+