That's the code I'm using... I have a xres of 1280 and the clock is 244 and the uptime is 174 width wise... so theoretically by adding those together and then multiplying them by 2 and subtracting that from the total rez it should make it so the max width of the center label bumps against the edge of the 2nd label right? But for some reason it leaves a gap between the two and I can't figure out why... basically I'm doing this as a stopgap measure to prevent it from overlapping the systray icons with a long song title since I can't get the width of the systray when it's autowidth unless I'm missing how... so any ideas on what I'm doing wrong or is this a bug?
Something else I noticed is that depending on what font I use the width of the center task bar is drastically different... and I don't mean in the obvious way... the left side of the label stays in the same place but the right side of the label still spreads out... and I've been testing on a very long winamp title to see how it works and it scrolls for both so I know it's not b/c of the length of the title..
Registered Member #38
Joined: Mon May 31 2004, 11:48AM
posts 29
According to your math your max width of the center label should be 444. What is it in your case?
I think we need more information about where the other two labels are, but if I recall and understand correctly, CurrentWidth won't work the way you're using it, as it is an exported variable. Somebody correct me if I'm wrong.
Are Clock and Uptime set to autowidth mode? I would think that sort of information wouldn't change a lot? You could probably just use Width...
After talking with Goth on the IRC chan I changed how it was done... doesn't look as nice as it did before but it works and that's the important part right now...