 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
viciouskinid
Joined: 23 Jun 2007 Posts: 136
|
Posted: Sat May 17, 2008 6:47 pm Post subject: Cant change the colour of a taskbar |
|
|
how come when I either colour the text or the background the text moves
| Code: |
gui, font, s6 cRed,
Gui,1: Color, blue
Gui,1: Add, Tab2,Left x0 y0 w20 h200 Buttons vTabvar, asss|ddddx|fddd
Gui,1: Show, NoActivate w100 h100 ,
|
this is how i want it to be but coloured
| Code: |
gui, font, s6 ,
Gui,1: Add, Tab2,Left x0 y0 w20 h200 Buttons vTabvar, asss|ddddx|fddd
Gui,1: Show, NoActivate w100 h100 ,
|
[Moderator's note: Moved to Bug Reports.] |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2542 Location: Australia, Qld
|
Posted: Sun May 18, 2008 12:31 am Post subject: |
|
|
Tab controls with custom colours are "owner-drawn" - i.e. drawn by AutoHotkey rather than Windows. On my system, at least, the text is drawn offset from where it should be drawn. This applies with or without Left and Buttons, but with Left it puts the text off the tab.
I get these results on Vista and XP with any theme active.
Edit: Since the text is normally aligned to one side on my system, the following comment seems to indicate that some versions of Windows render differently:
| Code: | // The text is centered horizontally and vertically because that seems to be how the
// control acts without the TCS_OWNERDRAWFIXED style. | I'm not sure whether the the positioning of the text with the Left option is a bug in AutoHotkey or an irregularity in the API used to draw text. |
|
| Back to top |
|
 |
viciouskinid
Joined: 23 Jun 2007 Posts: 136
|
Posted: Sun May 18, 2008 1:47 am Post subject: |
|
|
thanks for the reply. Well it seems that there is no easy fix. Is there a way to have vertical text in ahk using any other method. I am looking for true vertical not stacked horizontal.
-----
just got it workig with this dll
http://www.autohotkey.com/forum/viewtopic.php?t=8365
only the rotated text part. |
|
| 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
|