Hello IUP,

I noticed that IupLoadAnimation loads only the 1st frame of a GIF file containing several. Here is how I use it:

appDlg.loadingAnimSmall = IupLoadAnimation("loading-small.gif");
appDlg.canvas.loadingAnim = IupAnimatedLabel(appDlg.loadingAnimSmall);
IupAppend(IupGetParent(appDlg.canvas.handle), appDlg.canvas.loadingAnim);
IupSetAttribute(appDlg.canvas.loadingAnim, "START", "YES");

printf("%d\n", IupGetInt(appDlg.canvas.loadingAnim, "FRAMECOUNT"));
printf("%d\n", IupGetInt(appDlg.canvas.loadingAnim, "FRAMETIME"));

The frame count's reported to be 1, the frame time is correctly inferred. Is this expected?

Thanks!



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to