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 

Window Background

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
royscott



Joined: 22 Nov 2004
Posts: 27

PostPosted: Sun Jan 23, 2005 4:36 pm    Post subject: Window Background Reply with quote

I would like you to consider modifying GUI so that a gif or other image file can be used as the background for a window. Sort of a window wallpaper. This could make individual scripts very distinctive if it is possible.
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5068
Location: imaginationland

PostPosted: Sun Jan 23, 2005 4:41 pm    Post subject: Reply with quote

This can sorta be done already by using +BackgroundTrans on GUI controls like Text ones.
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sun Jan 23, 2005 4:54 pm    Post subject: Reply with quote

I believe you can achieve this effect by adding an image as the very first control. To have it fill the entire window, scale it to be the same as the dimensions used in the Gui Show command.

Since I've not extensively tested this method, please let me know if there are any problems.

P.S. Good point, Titan.
Back to top
View user's profile Send private message Send e-mail
royscott



Joined: 22 Nov 2004
Posts: 27

PostPosted: Mon Jan 24, 2005 4:15 am    Post subject: Reply with quote

This works pretty well. However, it will not fill the window background. In spite of everything that I was able to try there was still a narrow margin on the left and top that I could not get the texture to fill. So I cut down the image size so the there was also a narrow margin on the right and bottom. That works out pretty well and looks good. By changing the background color of the window it appears to be a wide border. I also use the transparent command on the text labels so that the texture shows in them.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Mon Jan 24, 2005 4:22 pm    Post subject: Reply with quote

Thanks for the feedback. Hopefully someday there will be an easier and more complete way to set a background image.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List 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