- UID
- 10108
- 积分
- 5956
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-9-17
- 最后登录
- 1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
本帖最后由 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.
|
|