Modify

Opened 17 years ago

Closed 16 years ago

#282 closed Bug (Fixed)

Transparency issue with icon controls on tabs (revisited)

Reported by: Ultima Owned by: Jpm
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 Changed 16 years ago by Jpm

  • Milestone set to 3.2.13.0
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in version: 3.2.13.0

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.