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 

WinSet, TransColor

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Tue May 17, 2005 8:07 am    Post subject: WinSet, TransColor Reply with quote

I want to create a window with a small border and the internal area half transparent. But the combination "Gui,-Caption" and "WinSet, TransColor" do not work together, the gui doesn't get transparent. Is that by OS design or a AHK bug?

Code:
Gui, -Caption +Border
Gui, Color, Yellow , Blue
Gui, +LastFound
WinSet, TransColor, Yellow 100
Gui, Show, w500 h500, test
return

esc::Exitapp


When I comment out the "Gui,-Caption" line, the transparency works. But it sets all parts of the gui (including caption and border) transparent. I thought the "Winset,TransColor" would only set the yellow pixel transparent. Is this my mistake, or a bug?

I use AHK 1.0.33.0 and WinXP Pro
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Tue May 17, 2005 10:35 am    Post subject: Reply with quote

I got one step further:

If I add +Resize, the yellow color gets transparent:
Code:
Gui, -Caption +Border
Gui, Color, Yellow , Blue
Gui, +LastFound +Resize
WinSet, TransColor, Yellow 100
Gui, Show, w500 h500, test
return

esc::Exitapp
It seams to me that Winset needs a resizeable window to work on?!? But that wouldn't explain, why it is setting the transparency when the "Gui, -Caption +Border" line is commented out and no "+Resize" is set.

Regardless of the number of WinSet, the yellow color is totally transparent. Only the border changes transparency related to that number.
But shouldn't the number control the transparency of the yellow color and the border should be without any transparency?
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Tue May 17, 2005 11:01 am    Post subject: Reply with quote

toralf wrote:
It seams to me that Winset needs a resizeable window to work on?!?
For some reason, the caption must be removed only after setting the TransColor:
Code:
Gui, Color, Yellow , Blue
Gui, Add, Text,, Test Text
Gui, +LastFound +Border
WinSet, TransColor, Yellow 100
Gui -Caption  ; Must be after TransColor.
Gui, Show, w500 h500, test
return
I'll make sure this is added to the help file.

Quote:
But shouldn't the number control the transparency of the yellow color and the border should be without any transparency?
No, the transparency level affects the translucency of the entire window (every color). But TransColor makes one color completely invisible.
Back to top
View user's profile Send private message Send e-mail
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Tue May 17, 2005 11:25 am    Post subject: Reply with quote

Thank you Chris
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports 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