Table of Contents

COUNT property (Image)

Description

Specifies the number of individual images in an image file. For an object that can support many images (like a TOOLBAR), or several image states (like a PUSHBUTTON), it is often better to have a single file containing all the required images arranged in a horizontal strip rather than loading individual files. The INDEX property is then used to display the desired image. For example the following image file would have a COUNT property of 6, and setting the INDEX property to 4 would display the "search" image:

Property Value

This property is an integer value, greater than 0.

Property Traits

DevelopmentRuntimeIndexedScaledSynthetic
Get/SetGet/SetNoNoNo

Remarks

This property supersedes the deprecated IMAGECOUNT property in previous versions of OpenInsight.

Example

 
// Set the number of images in the IMAGE object and display the

   // the 4th image

   

   ObjxArray =        @Window : ".IMAGE"

   PropArray =        "COUNT"

   DataArray =        6

   

   ObjxArray := @Rm : @Window : ".IMAGE"

   PropArray := @Rm : "INDEX"

   DataArray := @Rm : 4

   

   Call Set_Property_Only( ObjxArray, PropArray, DataArray )
 
 
 

See Also

Image INDEX property.