Posts by arnisj

    It is told in AppWizard manual that Image widget supports animated GIF-s: UM03003.pdf:
    "6.2.19 JPEG/GIF/BMP
    Description
    This property allows to add a JPEG, a GIF or a BMP image to an Image object. AnimatedGIFs are supported as well. "

    However when animated GIF imported in project Images and the project gets Exported, the animated GIF-s *.c file takes as much as other images (generated from *.png) of the same dimensions (so - contains no more than 1 frame).

    I use variable to display the GIF in the Image widget, which works just fine with *.png files, but using the same mechanism (SETBITMAP job and as receiver Image widget) has no effect at all.

    How to properly use animated GIF-s in AppWizard? Is there any example or tutorial? Could not find any.

    My objective is to show 6 icons changing depending on status and one of them should be animated.

    If I create in C code progress like this:

    Then I can this code works:

    Code
    PROGBAR_Handle ahProgBar = WM_GetDialogItem (ID_SCREEN_Initial, GUI_ID_PROGBAR0);
    PROGBAR_SetValue (ahProgBar, 12);

    However, if I create PROGBAR in AppWizard GUI tool, following lines


    Code
    PROGBAR_Handle ahProgBar = WM_GetDialogItem (ID_SCREEN_Initial, ID_PROGBAR_Initial);
    PROGBAR_SetValue (ahProgBar, 12); <--- crash

    give crash in simulator (didn't tried on real hw):
    "PROGBAR.c
    Wrong handle type or Object not init'ed in PROGBAR_LockH()"

    Obviously AppWizard PROGBAR widget isn't the same as emWin widget.

    How to properly access AppWizard PROGBAR from C code?