guides:oi10:presentation_server:count_property_image

COUNT property (Image)

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:

This property is an integer value, greater than 0.

DevelopmentRuntimeIndexedScaledSynthetic
Get/SetGet/SetNoNoNo

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

 
// 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 )
 
 
 

Image INDEX property.

  • guides/oi10/presentation_server/count_property_image.txt
  • Last modified: 2023/10/25 10:49
  • by 127.0.0.1