|
![]() |
![]() |
version 2003
PA_Dial4DSetArrayPictureFromResources (dialog; arrayName; idArray; nb)
Parameter | Type | Description | |
dialog | PA_Dial4D | → | Dialog reference |
arrayName | char* | → | Name of the variable to access |
idArray | short* | → | Array of IDs of the PICT resources |
nb | long | → | Number of IDs in the array |
Description
The routine
PA_Dial4DSetArrayPictureFromResources
creates an array of pictures from a resource file.
arrayName
is the name of the created array,
nb
is the number of pictures the array will have, and
idArray
is a pointer to an array of IDs (16 bits integers) for those pictures. This command is a shortcut for optimizing picture creation.
Example
Fills a picture array with pictures of resources ID of 128 and 150.
short idArray[ 128, 150 ];
PA_Dial4DSetArrayPictureFromResources( dialog, "vArPict", idArray, 2 );
See Also