The number of frames in a pane's image.

Usage

Set_Property(OLECtrlEntID, "OLE.PaneFrameCount[index]", Value)

Values

Value can be any positive or negative whole number:

Default: 1

Indices

IndexDescription
indexIndex to an existing pane

Remarks

The PaneFrameCount property divides a pane's image into equal sized frames based solely on the image's width. For instance, if you set the PaneImage property to a 100x50 pixel bitmap and this property to 2, then each frame is 50x50 pixels. Set this property to 10, and each frame will be 10x50 pixels. Setting this value to anything less than 1 is the same as setting it to 1.

Once this property is set, you can use the PaneFrame property to show any one of the individual frames. Or use the PaneEffect and PaneAnimationDelay properties to show the frames sequentially to create animation.

See Also

PaneImagePaneFrame