Modify

Opened 18 years ago

Closed 18 years ago

#282 closed Bug (Fixed)

Transparency issue with icon controls on tabs (revisited)

Reported by: Ultima Owned by: J-Paul Mesnage
Milestone: 3.2.13.0 Component: AutoIt
Version: Other Severity: None
Keywords: Cc:

Description

This is actually an issue with AutoIt v3.2.12.0 RC4. The problem I'm noticing this time is that icon controls simply don't have transparent backgrounds on tab controls anymore (where as prior to RC4, it was that the transparency stopped working in specific situations as mentioned here). The problem might not be noticable depending on the Windows theme being used, but I tested on XP Luna. The main point is that the icon seems to be inheriting its background color for the transparent sections from the window background color instead of the tab control.

Here's the test script (slightly modified from the linked thread so that moving is optional -- simply there for testing regression again):

Global $winWidth = 256, $winHeight = 256

Global $hGUI = GUICreate(@AutoItVersion, $winWidth, $winHeight, 0)
GUICtrlCreateTab(5, 5, $winWidth - 10, $winHeight - 10)
GUICtrlCreateTabItem("Tab")
GUICtrlCreateIcon("shell32.dll", -5, ($winWidth-128)/2, ($winHeight-128)/2, 128, 128)
GUICtrlCreateTabItem("")

GUISetState()

;performMove()

Do
Until GUIGetMsg() = -3

Func winHMove($iOffset)
    WinMove($hGUI, "", $aiPos[0] + $iOffset, $aiPos[1])
    Sleep(1)
    $aiPos = WinGetPos($hGUI)
EndFunc

Func performMove()
	Global $aiPos = WinGetPos($hGUI)
	Do
		winHMove(-1)
	Until $aiPos[0] <= -$winWidth

	Do
		winHMove(1)
	Until $aiPos[0] >= 0
EndFunc

Attachments (0)

Change History (1)

comment:1 by J-Paul Mesnage, 18 years ago

Milestone: 3.2.13.0
Owner: set to J-Paul Mesnage
Resolution: Fixed
Status: newclosed

Fixed in version: 3.2.13.0

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.