Jump to content
Sahsuvar

Progressbar guiconf.h changings

Recommended Posts

Hi
I have a problem with progressbar.

gfxconf.h

    #define GWIN_NEED_PROGRESSBAR TRUE

my compiler couldn't find the variables that generated from the ugfx studio. Is there any other changes that I have to make.

thanks.

Progresbarproblem.jpg

Share this post


Link to post
Share on other sites

Hi,

I moved this topic to the µGFX-Studio section of the forum.

Can you please give more information on the compiler and IDE that you are using? Also, is the progressbar working in the preview that you can generate in the µGFX-Studio (hitting the green preview button)?

Share this post


Link to post
Share on other sites

I am using keil with armcc 

I am facing with these errors

*********gui.c(48): error:  #20: identifier "gwinProgressbarDraw_Std" is undefined
           wi.customDraw = gwinProgressbarDraw_Std;
*********gui.c(51): error:  #513: a value of type "int" cannot be assigned to an entity of type "GHandle"
           ghProgressbar1 = gwinProgressbarCreate(0, &wi);

 

my gfxconf.h file these codes are exist,

        #define GWIN_NEED_PROGRESSBAR TRUE
        #define GWIN_PROGRESSBAR_AUTO TRUE

Share this post


Link to post
Share on other sites

As asked previously: Does it work with the preview built by the µGFX-Studio?

Also, can you please specify the version of the µGFX library that you are using and provide us with a minimal test-case that allows us reproducing the problem? Uploading a ZIP archive containing your µGFX-Studio project might also help us to track down the problem.

Share this post


Link to post
Share on other sites

Thank you

I am also unable to simulate

W10 computer 

With my win7 computer I can run the preview generator but but This computer ı cant

same issue with this topic 

: ) there are two problems 

Please solve my problems : )

PS: have to add the ugfxlibrary to the file

Example.rar

ugfx studio.png

Share this post


Link to post
Share on other sites

Can you please show us the "Preview Generator" dialog with the "Show Details" enabled?
The topic you linked contains the information on how to fix the issue. Make sure that you go to "Preferences -> Build" and select the "Built-In" toolchain as the default toolchain.

We checked your µGFX-Studio project and everything seems fine. It compiles without any errors. Please make sure that you make a clean-build (in Keil µVision) whenever you modify the configuration file.

Share this post


Link to post
Share on other sites
.
C Compiler Options....
i686-pc-mingw32-gcc -c -ggdb -O0 -m32 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -ffunction-sections -fdata-sections -fno-common -flto -MMD -MP -MF .build/dep/fakefile.o.d -I. -I/cygdrive/C/ugfx_studio_0.15_windows/ugfx_library -I/cygdrive/C/ugfx_studio_0.15_windows/ugfx_library/3rdparty/tinygl-0.4-ugfx/include -I/cygdrive/C/ugfx_studio_0.15_windows/ugfx_library/drivers/multiple/Win32 -I/cygdrive/C/ugfx_studio_0.15_windows/ugfx_library/drivers/gaudio/Win32 -DGDISP_SCREEN_WIDTH=489 -DGDISP_SCREEN_HEIGHT=272 -DGFX_USE_OS_WIN32=TRUE fakefile.c -o .build/obj/fakefile.o
.
Linker Options........
i686-pc-mingw32-gcc -m32 -Wl,--gc-sections -lgdi32 -lwinmm .build/obj/fakefile.o -o .build/preview.exe
.
Compiling gui.c
Compiling main.c
Compiling /cygdrive/C/ugfx_studio_0.15_windows/ugfx_library/src/gdisp/mcufont/mf_font.c
Linking .build/preview.exe

ok I have another issue I am not able to compile simulate

Share this post


Link to post
Share on other sites

Your preview is definitely building correctly. It successfully compiles and links, there are no errors! What is the issue that you are experiencing? Don't you get an output window with your compilex µGFX application?
We downloaded the latest version available from the downloads section and we have no issues getting it working out of the box on a fresh Windows 10 machine.

Share this post


Link to post
Share on other sites

That is definitely the wrong approach. The progressbar widget is supposed to be disabled by default.
If that change fixed your problem then this means that the configuration file (generated by the µGFX-Studio) didn't have GWIN_NEED_PROGRESSBAR set to TRUE.

We will investigate this issue.

Share this post


Link to post
Share on other sites

 

gfxconf.h

#define GWIN_NEED_PROGRESSBAR TRUE

 

 

gwinoptions.h

    #ifndef GWIN_NEED_PROGRESSBAR
        #define GWIN_NEED_PROGRESSBAR    TRUE
    #endif

 

look well

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...