PA_Dial4DSetArrayPictureFromResources

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_Dial4DSetArrayPictureFromResources (dialog; arrayName; idArray; nb)

ParameterTypeDescription
dialogPA_Dial4DDialog reference
arrayNamechar*Name of the variable to access
idArrayshort*Array of IDs of the PICT resources
nblongNumber 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

PA_Dial4DNewArrayPicture, PA_Dial4DSetArrayPicture.


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next