I can't get the labels to show the next (or possibly previous, I don't know, it may be working, but I can't go forward in the list, so I can't go back) icons in my systray. The code I have is below: I have limited the systray size to exactly large enough for 6 icons, and I set it to wrap towards the right. The labels actually show, but left-clicking on them does nothing. I could very possibly have the scroll icons incorrect, since the module's readme didn't really have any examples. Anyone have any ideas?
;__LabelArrowRight__
LabelArrowRightx 1270
LabelArrowRighty 4
LabelArrowRightHeight 11
LabelArrowRightWidth 6
LabelArrowRightImage $images$arrow_right.png
LabelArrowRightOnLeftclick [!vtrayScrollIcons next]
;__LabelArrowLeft__
LabelArrowLeftx 1260
LabelArrowLefty 4
LabelArrowLeftHeight 11
LabelArrowLeftWidth 6
LabelArrowLeftImage $images$arrow_left.png
LabelArrowLeftOnLeftclick [!vtrayScrollIcons "back"]
And here is is the actual systray config(at least the relevent parts):
VTraySettingsCompatibility
SystrayAlwaysOnTop
Systrayx 1135
SystrayY 0
SystrayWidth 120
SystrayHeight 18
SystrayWrapCount 6
SystrayWrapDirection right
SystrayDirection right
SystrayIconSize 16
SystrayIconSpacingX 4
SystrayIconSpacingY 0
why do you have the bangs in brackets? leave the [] stuff and it should be ok ;)
nope, still not working :( I'm gonna send a message off to vendicator to see if he can tell me what's wrong with my code (it's his module).
there was a bug in vtray, he fixed it in 1.01 or 1.02
You are using VTraySettingsCompatibility, so shouldn't the bang be !SystrayScrollIcons ? Also the WrapDirection should be perpendicular to the Direction...
Incidentally, I can't get scrolling to work at all with my own test config for VTray 1.03 :)
just tried with !systrayscrollicons, and wrap direction left, still didn't work.
so if you can't get it to work with 1.03, I doubt it'll work with 1.02 (unless if it was broken after 1.02, but I doubt that).
if anyone else has any ideas, I would be glad to hear them. I'm definitely willing to use different systray modules!
have you emailed Vendicator?
I just tested version 1.03, and scrolling works fine (you have to define a tray smaller than the number of icons).
VTrayX 0
VTrayY 0
VTrayWidth 20
VTrayHeight 20
VTrayBgColor FF00FF
then, use !vtrayscrollicons "prev" and !vtrayscrollicons "next", and you'll see it working.
I am getting some weird behavior here. Unproven, but scrolling seems to work only when you have the tray sized to show no more than half the number of icons you have?
I'm having a hard time observing, but it is best when you size it correctly (never show partial icons).
Funny, !vtrayscrollicons prev is doing an odd panning scroll (unlike the !vtrayscrollicons next, which only stops at the end) :b
This is most noticeable when you size vtray to show two icons at once.
Calling !vtrayscrollicons prev using the initial order of icons, it seems to go east, showing last icon alone, stop, then go west reusing the last icon on the right with now the reverse of the initial order to its left, stop, go east, stop, then resume with the neighbors of the initial order when going back west, and stop. It repeats. I'm just as confused as you, and of course, I haven't tried a possible case with more or less than four sweeps (E,W,E,W) as this vaguely describes. :)
*sends e-mail to Vendicator*
Well I got Deuces mail, but replying to it I only got a bounce from a symantec firewall or something (501 unacceptable mail address)(using the Bat!).
As previously said it should be "LabelArrowLeftOnLeftclick !SystrayScrollIcons back", without brackets and systray as prefix (from compatibility). Also note that wrapdirection and direction cannot be in the same "line" one should be horizontal, the other vertical...
Also I did find a bug in the "prev" then "back" scrolling, seems the icon that got shown again were in the reverse order, fixed here.
And no, it wouldn't be hard to implement a fixed nr of icons to scroll (as tnl suggested in mail).
ok, it's STILL not working. I just upgraded to vtray 1.04, also. here are the commands I'm currently using(taking into consideration vendicator's post). thanks everyone for your help.
LabelArrowLeftOnLeftclick !systrayScrollIcons prev
LabelArrowRightOnLeftclick !systrayScrollIcons next
SystrayWrapCount 3
SystrayWrapDirection down
SystrayDirection right
hmm.. I have no idea, could you mail me your theme so I can test it here?
I totally forgot the case of more than a single row or col of icons..
vendicator, it should be there any time now. thanks a lot.