zhw7238 Posted May 8, 2014 Report Share Posted May 8, 2014 GHandle gwinGProgressbarCreate(GDisplay *g, GProgressbarObject *gs, const GWidgetInit *pInit) { if (!(gs = (GProgressbarObject *)_gwidgetCreate(g, &gs->w, pInit, &progressbarVMT))) return 0; gs->min = 0; gs->max = 100; gs->res = 1; gs->pos = 0; gs->delay = 0; gtimerInit(&gs->gt);//GTimer need init, otherwise call gwinProgressbarStop will crash, my MCU is STM32F103VT ResetDisplayPos(gs); gwinSetVisible((GHandle)gs, pInit->g.show); return (GHandle)gs;} Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted May 8, 2014 Report Share Posted May 8, 2014 Thank you very much for reporting this bug, it has been fixed.Please note that you'll have to enable the auto increment feature by setting GWIN_PROGRESSBAR_AUTO to TRUE in your gfxconf.h from now on.~ Tectu Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now