AnimateCtrl_Create
- Updated2023-02-21
- 6 minute(s) read
int AnimateCtrl_Create (int panel, const char *label, int top, int left);
Purpose
This function creates a new 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 attributes.
You can add pictures to an animation control with the same methods used to add pictures to a picture ring. You may find it more convenient to create a picture ring with the desired pictures in the User Interface Editor and then call AnimateCtrl_ConvertFromPictRing to convert the ring into an animation control after the panel it resides on has been loaded.
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. |
| label | const char * | The label of the animation control. Pass "" or 0 for no label. |
| top | int | The vertical coordinate at which the upper left corner of the control (not including labels) is placed. The coordinate must be an integer value from –32768 to 32767. The origin (0,0) is at the upper–left corner of the panel (directly below the title bar) before the panel is scrolled. |
| left | int | The horizontal coordinate at which the upper left corner of the control (not including labels) is placed. The coordinate must be an integer value from –32768 to 32767. The origin (0,0) is at the upper–left corner of the panel (directly below the title bar) before the panel is scrolled. |
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.
|
Additional Information
Library: Animation Control
Include file: custctrl\animate.h
LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later