Posted by member 2112 on 2003-06-24 18:37:43 link
I wonder if the cause of this problem is when there are few icons in the system tray? The problem is that the label with "GLAZE" on it overlaps the system tray. The width of the label calculated using the current width of the systray. As the systray shrinks and grows so does the label. I don't understand how one PC can give the correct width for the systray and another PC won't. This makes me think it's a possible bug with systray2 not with the code I have used. If anyone believes differently then please let me know why.
The systray is defined differently depending on what resolution you are running. If you are running a res greater than 1024 x 768 then the systray width will automatically shrink and grow as icons are added and removed. If you are running a res equal to or less than 1024 x 768 then the systray width will be hard set. From what you've described I'm going to assume you are running a res greater then 1024.
If you are consistantly missing one icon then there is an easy work around.
- Open the base.rc from the config folder
- Near the bottom of the file find the line that defines Divide04Width. Note that it exists in two places. We want to modify the formula for the first one.
- Modify the formula to subtract 20. It should look like this: $resolutionX-SystrayCurrentWidth-Divide04X-CornerBottomRightWidth+1-20$
- Below this section there are two lines beginning with SystrayOnAdd and SystrayOnDel. For both of these subtract 20 from the formula for the width. The new width should look like this: ^@#d^Divide04TotalWidth-SystrayCurrentWidth-20^@#d^
- Save and recycle the theme.
That should do the trick. If you get any little gaps or overlaps then subtract a smaller or larger value than 20 as needed.
The systray is defined differently depending on what resolution you are running. If you are running a res greater than 1024 x 768 then the systray width will automatically shrink and grow as icons are added and removed. If you are running a res equal to or less than 1024 x 768 then the systray width will be hard set. From what you've described I'm going to assume you are running a res greater then 1024.
If you are consistantly missing one icon then there is an easy work around.
- Open the base.rc from the config folder
- Near the bottom of the file find the line that defines Divide04Width. Note that it exists in two places. We want to modify the formula for the first one.
- Modify the formula to subtract 20. It should look like this: $resolutionX-SystrayCurrentWidth-Divide04X-CornerBottomRightWidth+1-20$
- Below this section there are two lines beginning with SystrayOnAdd and SystrayOnDel. For both of these subtract 20 from the formula for the width. The new width should look like this: ^@#d^Divide04TotalWidth-SystrayCurrentWidth-20^@#d^
- Save and recycle the theme.
That should do the trick. If you get any little gaps or overlaps then subtract a smaller or larger value than 20 as needed.