Control SetImageList

Started by ATP, June 11, 2013, 02:11:52 PM

Previous topic - Next topic

ATP

RU
Здравствуйте!
У меня возникли сложности в применении следующей функции:
(dcl_Control_SetImageList <CONTROL> NewValue [as Image List])
Я прошу Вас помочь с кодом на Autolisp.
Очень нужен пример Autolisp программы позволяющий из выбранной папки,
где содержаться более 300 иконок добавить их в Tree контрол.
Добавлять руками более 300 иконок достаточно трудно.

EN
Hello!
I am having problems in the usage of the following functions:
(dcl_Control_SetImageList <CONTROL> NewValue [as Image List])
I ask You to help with a code on Autolisp.
Really want an example of Autolisp program allows you from the selected folder
where contain more than 300 icons add them to the Tree control.
Add hands over 300 icons hard enough.

owenwengerd

There is not currently any way to add images to the image list via AutoLISP. I think the only thing you could do is to call (dcl_Control_GetImageList) on one control, then use the result to set the image list on a different control.

In OpenDCL Studio you can add multiple images at once by simply selecting multiple files in the selection dialog. If your underlying question is just how to add many images easily, then the best solution is using the multiple selection feature at design time in OpenDCL Studio.
Owen Wengerd (Outside The Box) / ManuSoft