@DC-MWA,
Ha now i'm getting you, 'repeat command \ repeat image' is all summed up as store the last selected item and retrieve it at start as default - Right?!
to store the selected item you can write it to registry immediately after selecting OK:
(defun save_registry_string (KEY value / reg-key)
(setq reg-key (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Applications\\mwa\\walladd"))
(vl-registry-write reg-key KEY value)
)
usage:
(save_registry_string "selLst_item" selLst_item)
to retrieve registry value:
(defun restore_registry_string (KEY def / reg-key value)
(setq reg-key (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Applications\\mwa\\walladd"))
(if (setq value (vl-registry-read reg-key KEY))
value
(vl-registry-write reg-key KEY def)
)
)
if 'KEY' is not exist, it will be created with 'def' value.
usage:
(setq selLst_item (restore_registry_string "selLst_item" "0"))
so you call (restore_registry_string) before opening the dialog box, than inside (while) set tiles default value (that's include populate the list, show your logo, show the image, highlight list item and set the bottom message). when list item is selected\changed respond to it by showing the selected image plus set the bottom message. when OK picked, after you execute (command) call (save_registry_string).
Attached the modified lisp 😀
enjoy
moshe