vtray won't scroll Thread last updated on 2003-08-01 11:19:40

Posted by member 1316 on 2003-07-28 15:22:34

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

Posted by member 1783 on 2003-07-28 15:29:02 link

why do you have the bangs in brackets? leave the [] stuff and it should be ok ;)

Posted by member 1316 on 2003-07-28 15:33:45 link

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).

Posted by member 35 on 2003-07-28 16:08:41 link

there was a bug in vtray, he fixed it in 1.01 or 1.02

Posted by member 1316 on 2003-07-28 16:13:30 link

thx, but I have 1.02

Posted by member 37809 on 2003-07-28 19:51:17 link

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 :)

Posted by member 1316 on 2003-07-29 16:08:16 link

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!

Posted by member 1 on 2003-07-29 17:00:59 link

have you emailed Vendicator?

Posted by member 39 on 2003-07-29 18:03:18 link

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.

Posted by member 37809 on 2003-07-29 21:21:16 link

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*

Posted by member 376 on 2003-07-30 04:10:33 link

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).

Posted by member 1316 on 2003-07-30 15:28:08 link

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

Posted by member 376 on 2003-08-01 08:44:53 link

hmm.. I have no idea, could you mail me your theme so I can test it here?

Posted by member 37809 on 2003-08-01 08:56:33 link

I totally forgot the case of more than a single row or col of icons..

Posted by member 1316 on 2003-08-01 11:19:40 link

vendicator, it should be there any time now. thanks a lot.