AnimateCtrl_ConvertFromPictRing
- Updated2023-02-21
- 5 minute(s) read
int AnimateCtrl_ConvertFromPictRing (int panel, int pictureRingToConvert);
Purpose
This function converts a picture ring into an animation control.
An animation control is a picture ring that automatically advances through its pictures. You can configure the rate at which the pictures are displayed and the size and position of each picture through the animation control's attributes.
Parameters
| Input | ||
| Name | Type | Description |
| panel | int | The specifier for a particular panel that is currently in memory. This handle will have been returned by the LoadPanel, NewPanel, or DuplicatePanel function. |
| pictureRingToConvert | int | Specifies the picture ring control on the panel that will be converted into an animation control. Pass the defined constant (located in the UIR header file) that was assigned to the string control in the User Interface Editor or an ID returned by the NewCtrl or DuplicateCtrl function. |
Return Value
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| animationControl | int | Returns the ID used to specify this control in subsequent function calls. Negative values indicate that an error occurred. If the function succeeds, it will return the same ID that was passed in for the pictureRingToConvert parameter. This means that if the pictureRingToConvert was specified using a defined constant (from the UIR header file) that was assigned to the string control in the User Interface Editor, then this constant can now be used to refer to the animation control.
|
Additional Information
Library: Animation Control
Include file: custctrl\animate.h
LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later
Example
Refer to userint\custctrl\animate\animsample.cws for an example of using the AnimateCtrl_ConvertFromPictRing function.