LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

include lib when using AnimateCtrl?

Hi
Trying to get my animation to start working.

my code looks like:

//Start animation
    AnimateCtrl_ConvertFromPictRing( panelSearchHandle, SEARCH_ANIMATION_PIC );
    AnimateCtrl_SetAttribute ( panelSearchHandle, SEARCH_ANIMATION_PIC, ATTR_ANIMATE_ENABLED, 1);
    AnimateCtrl_SetAttribute ( panelSearchHandle, SEARCH_ANIMATION_PIC, ATTR_ANIMATE_FRAME_INTERVAL, 1);
    AnimateCtrl_SetAttribute ( panelSearchHandle, SEARCH_ANIMATION_PIC, ATTR_ANIMATE_STOP_ON_LAST_FRAME, 0);
   
   
    ClearListCtrl( panelSearchHandle, SEARCH_LISTBOX );


But I get the error, missing prototype on every AnimateCtrl, when compile.  Looks like I misses an include or something.

Please help a young programmer..

0 Kudos
Message 1 of 2
(3,132 Views)
Hi harsmar,
 
You need to include the Animation Control library, animate.fp
This is located at:
<CVI>\toolslib\custctrl\animate.fp
You can load a library by clicking Instrument»Load...
 
You also need to include the header file:
#include "animate.h"
Jervin Justin
NI TestStand Product Manager
0 Kudos
Message 2 of 2
(3,103 Views)