LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i display animated gif on my panel?

I want to load animated gif to the uir
0 Kudos
Message 1 of 3
(4,027 Views)
Use an activX control and create an embedded web browser.


void InitHelpPage (void)
{
char HelpPath[260];
char AppDir[260];
//Get Object Handle from ActiveX control and load initial page
GetObjHandleFromActiveXCtrl (HelpHandle[0], HELP_1_WEBBROWSER,&webHandle);

//Navigate to the ni.com first
GetProjectDir (AppDir);
//E:\Data\CVI_Sourcefiles\MSL\MRT1000-300\WebHelp\MRT_Manual_Set.htm
sprintf (HelpPath, "%s\\WebHelp\\Index.html",AppDir);
INET_IWebBrowser2Navigate (webHandle, NULL, HelpPath, CA_DEFAULT_VAL,
CA_DEFAULT_VAL, CA_DEFAULT_VAL, CA_DEFAULT_VAL);

//Install event handler for navigate complete event from web browser
INET_DWebBrwsrEvnts2RegOnNavigateComplete2 (webHandle,

NavigateComplete, NULL, 1,
NULL);


}
Jattie van der Linde
Engineering Manager, Software & Automation
TEL Magnetic Solutions Ltd
Message 2 of 3
(4,027 Views)
Hi,

As you probably know by now CVI does not supports animated gif files in the uir natively. The web browser is a great solution, the only drawback is that IE must be on the target computer.

There is also a native CVI control that you can use to display various bitmaps in a sequence. This is one of CVI's toolslib custom controls, you can find them in the palette in CVI 7.0 or at C:\Program Files\National Instruments\CVI70\toolslib\custctrl\ you would have to break down you animated gif into a series of bitmaps, but you don't need IE.

Just my 2 cents.

Regards,

Juan Carlos
N.I.
Message 3 of 3
(4,027 Views)