Interesting. I'm using XP SP3 and the bug occurs on Basic and L Unicode. The condition you described does not occur on my PC.
I'm wondering what happens with the other standard controls. If you have time, try this script. Everything works perfectly for me except the TreeView control. It would be nice if someone with Windows 7 could test it as well.
#NoEnv
#SingleInstance Force
ListLines Off
;-- GUI Options
gui Margin,8,1
gui Color,,FFFF80 ;-- Initial background color
;-- Buttons
gui Add,Button, gBG1, %A_Space% Background 1 %A_Space%
gui Add,Button,x+0 wp gBG2, Background 2
gui Add,Button,x+0 wp gBG3, Background 3
gui Add,Button,x+0 wp gBGRandom, Random
gui Add,Button,x+0 wp gBGDefault,Default
;;;;;gui Add,Button,x+20 wp gReload,Reload...
;-- Start section
gui Add,Text,xm w190 h1 Section,%A_Space% ;-- Spacer
;-- Column 1
gui Add,Text,w190 Center,-- Column 1 --`nControls Not Affected By`nBackground Color
gui Add,Text,,Button
gui Add,Button,,%A_Space% Button %A_Space%
gui Add,Text,h1 ;-- Spacer
gui Add,Text,,Checkbox
gui Add,Checkbox,,Option 23
gui Add,Text,h1 ;-- Spacer
gui Add,Text,,ComboBox
gui Add,Combobox,r5,Item 1|Item 2|Item 3|Item 4|Item 5|Item 6|Item 7|Item 8|Item 9
gui Add,Text,h1 ;-- Spacer
gui Add,Text,,DateTime
gui Add,DateTime,w190
gui Add,Text,h1 ;-- Spacer
gui Add,Text,,Hotkey
gui Add,Hotkey
gui Add,Text,h1 ;-- Spacer
gui Add,Text,,Progress
gui Add,Progress,w190,80
gui Add,Text,h1 ;-- Spacer
gui Add,Text,,Slider
gui Add,Slider,w190,40
gui Add,Text,h1 ;-- Spacer
gui Add,Text,,Radio
gui Add,Radio,,Option 72
gui Add,Radio,,Option 73
gui Add,Text,h1 ;-- Spacer
gui Add,Text,,Text
gui Add,Text,w190 cBlue,Text not affected by the background color.
gui Add,Text,h1 ;-- Spacer
;-- Column 2
gui Add,Text,ys w190 h1 Section,%A_Space% ;-- New column
gui Add,Text,w190 Center,-- Column 2 --`nVarious
gui Add,Text,,DropDownList 1
gui Add,DropDownList,,Item 1|Item 2|Item 3|Item 4|Item 5|Item 6|Item 7|Item 8|Item 9
gui Add,Text,h1 ;-- Spacer
gui Add,Text,w190,DropDownList 2`nBackground color removed with "-Background" option.
gui Add,DropDownList,-Background,Item 1|Item 2|Item 3|Item 4|Item 5|Item 6|Item 7|Item 8|Item 9
gui Add,Text,h1 ;-- Spacer
gui Add,Text,,Edit 1
gui Add,Edit,w190 r3,Just some pre-loaded text. Add your own.
gui Add,Text,h1 ;-- Spacer
gui Add,Text,w190,Edit 2`nBackground color removed with "-Background" option.
gui Add,Edit,w190 -Background
gui Add,Text,h1 ;-- Spacer
gui Add,Text,,ListBox 1
gui Add,ListBox,w190 r3,Item 1|Item 2|Item 3|Item 4|Item 5|Item 6|Item 7|Item 8|Item 9
gui Add,Text,h1 ;-- Spacer
gui Add,Text,w190,ListBox 2`nBackground color removed with "-Background" option.
gui Add,ListBox,w190 r3 -Background,Item 1|Item 2|Item 3|Item 4|Item 5|Item 6|Item 7|Item 8|Item 9
gui Add,Text,h1 ;-- Spacer
;-- Column 3
gui Add,Text,ys w190 h1 Section,%A_Space% ;-- New column
gui Add,Text,w190 Center,-- Column 3 --`nListView
gui Add,Text,w190,ListView 1`nControl uses and retains the initial background color (if any).
gui Add,ListView,w190 r3 Checked,Column 1|Column 2|Column 3
Loop 3
LV_Add("","Row " . A_Index)
gui Add,Text,h1 ;-- Spacer
gui Add,Text,w190,ListView 2`nBackground color removed with "-Background" option. Note: The "+BackgroundDefault" option can also be used.
gui Add,ListView,w190 r3 Checked +BackgroundDefault,Column 1|Column 2|Column 3
Loop 3
LV_Add("","Row " . A_Index)
gui Add,Text,h1 ;-- Spacer
gui Add,Text,w190,ListView 3`nCustom background color set with the "+Background" option.
gui Add,ListView,w190 r3 Checked +BackgroundFFE0FF,Column 1|Column 2|Column 3
Loop 3
LV_Add("","Row " . A_Index)
gui Add,Text,h1 ;-- Spacer
;-- Column 4
gui Add,Text,ys w190 h1 Section,%A_Space% ;-- New column
gui Add,Text,w190 Center,-- Column 4 --`nTreeView
gui Add,Text,w190,TreeView 1`nControl uses and retains the initial background color (if any).
gui Add,TreeView,w190 r3
Loop 3
TV_Add("Parent " . A_Index)
gui Add,Text,h1 ;-- Spacer
gui Add,Text,w190,TreeView 2`nBackground color removed with "-Background" option. Note: The "+BackgroundDefault" option can also be used.
gui Add,TreeView,w190 r3 -Background
Loop 3
TV_Add("Parent " . A_Index)
gui Add,Text,h1 ;-- Spacer
gui Add,Text,w190,TreeView 3`nCustom background color set with the "+Background" option.
gui Add,TreeView,w190 r3 +BackgroundF0F0F0
Loop 3
TV_Add("Parent " . A_Index)
gui Add,Text,h1 ;-- Spacer
;-- Column 5
gui Add,Text,ys w190 h1 Section,%A_Space% ;-- New column
gui Add,Text,w190 Center,-- Column 5 --`nTabs
gui Add,Text,w190,Tab 1`nBackground color does not affect the control but controls within the tabs are affected.
gui Add,Tab2,w190 h100,Tab 1|Tab 2|Tab 3
gui Add,Text,,Edit control within the tab.
gui Add,Edit,w170 r3,What the heck?
gui Tab
gui Add,Text,h1 ;-- Spacer
gui Add,Text,xs y+10 w190,Tab 2 with +Theme and -Background options. Background color does not affect the control but controls within the tabs are affected.
gui Add,Tab2,w190 h100 +Theme -Background,Tab 1|Tab 2|Tab 3
gui Add,Text,,Edit control within the tab.
gui Add,Edit,w170 r3,What the heck, part 2.
gui Tab
gui Add,Text,h1 ;-- Spacer
gui Show
return
GUIClose:
GUIEscape:
Exitapp
BG1:
gui Color,,FFCECE
return
BG2:
gui Color,,CEFFFF
return
BG3:
gui Color,,CEE7FF
return
BGRandom:
SetFormat Integer,Hex
Random RandomColor,0x000000,0xFFFFFF
gui Color,,%RandomColor%
SetFormat Integer,D
return
BGDefault:
gui Color,,Default
return
Reload:
Reload
return
Thank you for your consideration.