![]() |
#6 |
Moderator
|
Надеюсь, что правильно понял первоначальный вопрос.
У меня есть метод, создающий ImageList по контейнеру имен ресурсов, переданному как параметр: X++: // создает ImageList на основе контейнера, переданных ресурсов static ImageList createImageList(container _con) { ImageList imageList = new ImageList( ImageList::smallIconWidth(),ImageList::smalliconHeight()); Image image = new Image(); ResourceNode resourceNode; int i; ; for (i=1; i<=conlen(_con); i++) { resourceNode = SysResource::getResourceNode(conpeek(_con, i)); resourceNode.AOTload(); image.setData(SysResource::getResourceNodeData(resourceNode)); imageList.add(image); } return imageList; } X++: imageList = gm_txRegMainClass::createImageList(['lock', 'final']); LockWin.imageList(imageList); |
|
|
За это сообщение автора поблагодарили: leshy (1), kashperuk (5). |