4D v14.3GET ICON RESOURCE |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
GET ICON RESOURCE
GET ICON RESOURCE
The GET ICON RESOURCE command returns, in the picture field or variable resData, the icon stored in the color icon (“cicn”) resource whose ID is passed in resID. If the resource is not found, the resData parameter is left unchanged and the OK variable is set to 0 (zero). If you pass a valid resource file reference number in resFile, the resource is searched for in that file only. If you do not pass resFile, the first occurrence of the resource found in the resource files chain is returned. The following example loads, in a Picture array, the color icons located in the active 4D application: If(On Windows) After this code has been executed, the array looks like this when displayed in a form: If the resource is found, OK is set to 1. Otherwise, it is set to 0 (zero). |
PROPERTIES
Product: 4D
HISTORY
Created: 4D v6 SEE ALSO ARTICLE USAGE
4D Language Reference ( 4D v12.4) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||