 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
toralf
Joined: 31 Jan 2005 Posts: 3841 Location: Bremen, Germany
|
Posted: Tue May 17, 2005 8:07 am Post subject: WinSet, TransColor |
|
|
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 |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3841 Location: Bremen, Germany
|
Posted: Tue May 17, 2005 10:35 am Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Tue May 17, 2005 11:01 am Post subject: |
|
|
| 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 |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3841 Location: Bremen, Germany
|
Posted: Tue May 17, 2005 11:25 am Post subject: |
|
|
Thank you Chris _________________ Ciao
toralf  |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|