Posted by member 95693 on 2004-07-06 13:15:16 link
Sorry... I probably should have posted some of my existing code with my post so I could show what I meant... I'm already using autowidth for the three xlabels... the first two in the upper left corner are autowidth and the positioning is based on the width of the previous label... but the center one is autowidth from the center. My problem is that when I have a low rez or a very long winamp song name with a lot of systray icons the label will overlap the systray. I know I can get the positioning of the other xlabels so it doesn't overlap them but I'm trying to figure out a way to prevent the overlap of the systray
WinampX $ResolutionX/2$
WinampY "0"
WinampAutoHeightMode "top"
WinampAutoMaxHeight "2%"
WinampAutoWidthMode "center"
WinampAutoMaxWidth "$xwidth$"
xwidth $ResolutionX-((ClockCurrentWidth+UptimeCurrentWidth)*2)$
I'm hoping there's some code that I'm missing that I can get the width of the systray dynamically so I can put that into the code and then whichever is great sets the max width of the center label
WinampX $ResolutionX/2$
WinampY "0"
WinampAutoHeightMode "top"
WinampAutoMaxHeight "2%"
WinampAutoWidthMode "center"
WinampAutoMaxWidth "$xwidth$"
xwidth $ResolutionX-((ClockCurrentWidth+UptimeCurrentWidth)*2)$
I'm hoping there's some code that I'm missing that I can get the width of the systray dynamically so I can put that into the code and then whichever is great sets the max width of the center label