trueski
Joined: 08 Apr 2008 Posts: 32
|
Posted: Thu Aug 14, 2008 2:49 pm Post subject: Set transcolor on child window problem... [Solved] |
|
|
This doesn't work for some reason...
| Code: | Gui, add, text, x-10 y-10, ; need something in the parent window to enable minimizing
Gui, +lastfound
Gui_1_ID := WinExist()
Gui, Show, h140 w200, Parent
Set_Parent_by_id(Gui_1_ID, 2) ; Window_ID, Gui_Number
Gui, 2: Show, x5 y5 h80 w150, Child
Gui, 2: Color, EEAA99
WinSet, Transcolor, EEAA99, Child
Return
Set_Parent_by_id(Window_ID, Gui_Number) ; title text is the start of the title of the window, gui number is e.g. 99
{
Gui, %Gui_Number%: +LastFound
Return DllCall("SetParent", "uint", WinExist(), "uint", Window_ID) ; success = handle to previous parent, failure =null
} |
_________________ -Trueski- |
|