Jump to content

Recommended Posts

Posted (edited)

I have a script that validates data against several Access database files.

Since there are thousands of records it processes I am giving the users a progress bar but as it doesn't move too much, I put a label with # of ##### overlaid on top of the progress bar so they can see the numbers changing even though the actual progress bar hasn't moved in a while.

The problem is, that after a few seconds the label disappears and occasionally flickers back on and disappears again.  I tried setting up a quick example script but it does not duplicate the problem without the access database query load.

I have narrowed it down to having something to do with the Windows 7 Aero Theme.  If I switch my system to use the Windows Classic theme everything works fine and the label updates as expected.

 

Anyone have some ideas on what I can do?  is there any way to force the Progress bars in my UI to use the Windows Classic progress bars?

 

Thanks,

Mike

Edited by BigDaddyO
Posted

Thanks AdmiralAlkex,

That worked, I must have read the help file a dozen times and for some reason the "" didn't pop out to me.

Finally found searching this site that using "", "" will remove any existing theme applied to a control.

    _WinAPI_SetWindowTheme(GUICtrlGetHandle($hProgressTotal), "", "")
    _WinAPI_SetWindowTheme(GUICtrlGetHandle($hProgressIndv), "", "")

 

  • 4 years later...
Posted

Sorry to dig out, but _WinAPI_SetWindowTheme(GUICtrlGetHandle($hProgressTotal), "", "") disable the Progress frame , what is the parameter to keep it ?

Posted

With Default, the function is useless for me (with or without it, it's the same).

My goal was to have the old bar (cause the "pulse" effect deletes the text ontop) and the frame.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...