#3826 closed Bug (Completed)
Background not erased for label with $GUI_BKCOLOR_TRANSPARENT set — at Version 6
| Reported by: | KaFu | Owned by: | J-Paul Mesnage |
|---|---|---|---|
| Milestone: | 3.3.15.5 | Component: | AutoIt |
| Version: | 3.3.15.4 | Severity: | None |
| Keywords: | Cc: |
Description (last modified by )
Does not happen with autoit-v3.3.15.0-beta-setup.exe, first occurred with autoit-v3.3.15.1-beta-setup.exe
https://www.autoitscript.com/forum/topic/202668-autoit-v33151-beta
Checked release notes and guess it might be related to this fix:
- Fixed: Workarounds added to alleviate slow downs on Windows 10 1809 and later (OS bug/design change).
To test comment / un-comment the GUI_BKCOLOR_TRANSPARENT line and run with prod version and current Beta. With current Beta the updated data overwrites the label with erasing to old data first.
#include <GUIConstantsEx.au3> Opt("GUIOnEventMode", 1) GUICreate("Test", 550, 40) GUISetOnEvent($GUI_EVENT_CLOSE, "_Exit") $c_Label = GUICtrlCreateLabel(TimerInit, 10, 10, 430, 20) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) ; comment / un-comment this line ; does not happen with autoit-v3.3.15.0-beta-setup.exe, first occurred with autoit-v3.3.15.1-beta-setup.exe ; https://www.autoitscript.com/forum/topic/202668-autoit-v33151-beta ; checked release notes and guess it might be related to this fix: ; - Fixed: Workarounds added to alleviate slow downs on Windows 10 1809 and later (OS bug/design change). GUICtrlCreateButton('Exit', 495, 10, 50) GUICtrlSetOnEvent(-1, "_Exit") GUISetState() While 1 GUICtrlSetData($c_Label, TimerInit()) WEnd Func _Exit() Exit EndFunc ;==>_Exit
Change History (6)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
just add a Sleep(10) after the GUICtrlSetData()
I will send a fix to Jon so the sleep() will not be needed.
In fact it is not a good habit to update continously a GUI without sleeping a while to allows others processes to get some CPU time
comment:3 by , 4 years ago
Tested with 3.3.15.5.alpha37, does not seem to be fixed there.
Regards, Karsten
comment:4 by , 4 years ago
I agree so the only solution is to fix the doc in case od Onevent witout sleep in the loop
I will add to the doc
Thanks
comment:5 by , 4 years ago
| Milestone: | → 3.3.15.5 |
|---|---|
| Resolution: | → Completed |
| Status: | assigned → closed |
Added by revision [12592] in version: 3.3.15.5
comment:6 by , 4 years ago
| Description: | modified (diff) |
|---|

With current Beta the updated data overwrites the label without erasing to old data first.