Modify

Opened 16 months ago

Closed 12 months ago

Last modified 12 months ago

#3826 closed Bug (Completed)

Background not erased for label with $GUI_BKCOLOR_TRANSPARENT set

Reported by: KaFu Owned by: Jpm
Milestone: 3.3.15.5 Component: AutoIt
Version: 3.3.15.4 Severity: None
Keywords: Cc:

Description (last modified by mLipok)

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

Attachments (0)

Change History (6)

comment:1 Changed 16 months ago by KaFu

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

comment:2 Changed 15 months ago by Jpm

  • Owner set to Jpm
  • Status changed from new to 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 Changed 12 months ago by KaFu

Tested with 3.3.15.5.alpha37, does not seem to be fixed there.
Regards, Karsten

comment:4 Changed 12 months ago by Jpm

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 Changed 12 months ago by Jpm

  • Milestone set to 3.3.15.5
  • Resolution set to Completed
  • Status changed from assigned to closed

Added by revision [12592] in version: 3.3.15.5

comment:6 Changed 12 months ago by mLipok

  • Description modified (diff)

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Jpm.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.