BigDaddyO Posted August 24, 2015 Share Posted August 24, 2015 (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 August 24, 2015 by BigDaddyO Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted August 25, 2015 Share Posted August 25, 2015 is there any way to force the Progress bars in my UI to use the Windows Classic progress bars?That would be _WinAPI_SetWindowTheme. It takes controls too, just use GUICtrlGetHandle as in the example. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
BigDaddyO Posted August 26, 2015 Author Share Posted August 26, 2015 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), "", "") Link to comment Share on other sites More sharing options...
JoeBar Posted November 25, 2019 Share Posted November 25, 2019 Sorry to dig out, but _WinAPI_SetWindowTheme(GUICtrlGetHandle($hProgressTotal), "", "") disable the Progress frame , what is the parameter to keep it ? Link to comment Share on other sites More sharing options...
Nine Posted November 25, 2019 Share Posted November 25, 2019 Try Default instead of "" “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
JoeBar Posted November 26, 2019 Share Posted November 26, 2019 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. 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