AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Set transcolor on child window problem... [Solved]

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
trueski



Joined: 08 Apr 2008
Posts: 32

PostPosted: Thu Aug 14, 2008 2:49 pm    Post subject: Set transcolor on child window problem... [Solved] Reply with quote

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-
Back to top
View user's profile Send private message
trueski



Joined: 08 Apr 2008
Posts: 32

PostPosted: Thu Aug 14, 2008 3:17 pm    Post subject: Reply with quote

I'm just going to take a different approach
_________________
-Trueski-
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group