找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 1499|回复: 4

[分享] OpenDCL 8.0.010 new Lisp API functions

[复制链接]

已领礼包: 1268个

财富等级: 财源广进

发表于 2014-12-6 22:48:15 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
本帖最后由 st788796 于 2014-12-6 22:52 编辑

Alpha 10 includes new Lisp API functions for managing the project picture folder and control image lists, support for dropping files into the image list and picture folder dialogs, and some control background color fixes.
New API functions are documented in English only. They are:
(dcl-Project-GetPictures)
(dcl-Project-SetPicture)
(dcl-ImageList-GetCount)
(dcl-ImageList-GetSize)
(dcl-ImageList-SetAt)

Function Name
dcl-Project-GetPictures
Syntax
(dcl-Project-GetPictures <PROJECT> {Password [as String]})
Return Type
List of PictureIDs
This method returns a list of all pictures in the specified project's picture folder. If the project has a password, the optional Password argument must be supplied, and it must match the project's password or the function will fail.

Function Name
dcl-Project-SetPicture
Syntax
(dcl-Project-SetPicture <PROJECT> {Password [as String]} Picture [as PictureID] Filename [as String])
Return Type
Boolean (T if successful; otherwise NIL)
This function adds, replaces, or deletes the specified picture from the project's picture folder. If the project has a password, the optional Password argument must be supplied, and it must match the project's password or the function will fail. If Filename is NIL, the picture is deleted.

Function Name
dcl-ImageList-GetCount
Syntax
(dcl-ImageList-GetCount ImageList [as Image List])
Return Type
Long
This method returns the number of images in the image list.

Function Name
dcl-ImageList-GetSize
Syntax
(dcl-ImageList-GetSize ImageList [as Image List])
Return Type
List of (Width [as Long] Height [as Long])
This function returns the size (in pixels) of images in the image list. If no size has been set, -1 will be returned for both width and height.

Function Name
dcl-ImageList-SetAt
Syntax
(dcl-ImageList-SetAt ImageList [as Image List] ImageIndex [as Integer] Filename [as String] {Width [as Long] Height [as Long]})
Return Type
Integer (new or deleted image index on success, NIL on failure)
This function adds, replaces, or deletes the image at ImageIndex. The first image is always at index zero. When adding images, an ImageIndex of -1 appends the image to the end of the list. If Filename is NIL, the image is deleted. The optional Width and Height image dimensions may be specified when adding the first image to an empty image list. If image dimensions are specified, the first added image is scaled to the specified dimensions. Subsequent images are always scaled to the same dimensions as the first image. If the Width and Height values are specified for subsequent images, they must match the image list image size or the function will fail.






论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!

已领礼包: 40个

财富等级: 招财进宝

发表于 2014-12-6 22:51:54 | 显示全部楼层
10出来了啊,下载地址给转帖过来吧。
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 1268个

财富等级: 财源广进

 楼主| 发表于 2014-12-6 23:06:05 | 显示全部楼层
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 264个

财富等级: 日进斗金

发表于 2014-12-7 18:01:47 来自手机 | 显示全部楼层
这几个函数可以不把图片先行加入odcl了?
是不是下步直接解析dll资源文件?
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2015-7-3 08:35:50 | 显示全部楼层

不错啊,学习中。。。。。。。。。。。。。。。
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2024-4-24 22:28 , Processed in 0.232216 second(s), 35 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表