Modify

Opened 6 weeks ago

Last modified 4 weeks ago

#3826 assigned Bug

Background not erased for label with $GUI_BKCOLOR_TRANSPARENT set

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

Description

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 (2)

comment:1 Changed 6 weeks ago by KaFu

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

comment:2 Changed 4 weeks 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

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 assigned 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.