jamptoo not appearing in lsbox Thread last updated on 2003-07-11 12:28:37

Posted by member 2112 on 2003-06-27 00:28:33

I'm unable to get jamptoo to appear in an lsbox. Here's my code

tbar.box
LsBoxName tbar
LsBoxX 0
LsBoxY 0
LsBoxBackground box_tbar.png

*ModuleHook !LabelLsBoxHook VwmLabel
*ModuleHook !LabelLsBoxHook AmpLabel
*ModuleHook !LabelLsBoxHook TimeLabel
*ModuleHook !LabelLsBoxHook ClockLabel
*ModuleHook !LabelLsBoxHook DateLabel

*Shortcut "" $amp_start$ 1 amp_prev.png amp_preva.png .none #2T !Amp_Prev
*Shortcut "" $amp_start+9$ 1 amp_play.png amp_playa.png .none #2T !Amp_Play
*Shortcut "" $amp_start+17$ 1 amp_pause.png amp_pausea.png .none #2T !Amp_Pause
*Shortcut "" $amp_start+25$ 1 amp_stop.png amp_stopa.png .none #2T !Amp_Stop
*Shortcut "" $amp_start+34$ 1 amp_next.png amp_nexta.png .none #2T !Amp_Next
*Shortcut "" $amp_start+43$ 1 amp_show.png amp_showa.png .none #2T !Amp_Show

*Wharfmodule 0 0 170 15 $ModulesDir$jamptoo.dll

LsBoxZOrder STAYONTOP


base.rc
jAmpX 0
jAmpY 0
jAmpH 15
jAmpW 170
jAmpAlwaysOnTop

jAmpNoWinampText "Winamp off"
jAmpScrollMode 1

jAmpTitleFormat "%tnumber%. %title% [%status%]"
jAmpTitleTop 0
jAmpTitleLeft 0
jAmpTitleBottom 0
jAmpTitleRight 115
jAmpTitleAlign 1
jAmpTitleFont "hooge 05_53"
jAmpTitleFontSize 10
jAmpTitleFontColor 0 0 0

jAmpTime
jAmpTimeFormat "%rem%"
jAmpTimeTop 0
jAmpTimeLeft 120
jAmpTimeBottom 0
jAmpTimeRight 162
jAmpTimeAlign 1
jAmpTimeFont "hooge 05_53"
jAmpTimeFontSize 10
jAmpTimeFontColor 0 0 0

jAmpTransparencyLevel 0


The image size for box_tbar.png is 523(w) x 18(h)

If I load jamptoo from the step.rc file it displays as expected. I also tried switching around the width and hight for the Wharfmodule just in case the docs were wrong but it made no different.

Any ideas on what the cause could be?

Posted by member 7 on 2003-06-27 01:40:22 link

The problem should be fixed in 1.4...

Posted by member 2112 on 2003-06-27 02:03:19 link

I'm using version 1.4. I downloaded it again from ls.net and from loose-screws just to make sure but no difference. I also tried version 1.2x and an older version of lsbox that I borrowed from the sputnik theme but still no success. The sputnik theme uses jamptoo in box and it works fine on my machine so I can't imagine why it doesn't work in my theme.



I did notice how ever that jamptoo is there, it's just invisible. Even with a background colour set.

Posted by member 1783 on 2003-06-27 03:27:41 link

weird, mine does...

here's my code:
STEP.RC

jAmpX 0
jAmpY 0
jAmpW 108
jAmpH 20
jAmpBackColor 000000
jAmpNoWinampText "------- Winamp -------"
jAmpScrollMode 1
jAmpScrollFiller " ¤¤¤ "
jAmpTitleFormat "%tnumber%. %title% (%pos% / %length%)"
jAmpTitleTop 3
jAmpTitleLeft 0
jAmpTitleRight 108
jAmpTitleBottom 20
jAmpTitleAlign 1
jAmpTitleFont Tahoma
jAmpTitleFontSize 13
jAmpTitleFontColor FFDE00
jAmpTime 0

TEXT.BOX

LsBoxName Text
LsBoxX 269
LsBoxY -0
LsBoxHeight 22
LsBoxWidth 110
LsBoxBackground box_bg.png
LsBoxBackgroundOffs 1 1 1 1
LsBoxZOrder HUGBOTTOM

*WharfModule 1 1 108 20 "$ModulesDir$jAmpToo.dll"

and i'm using jAmpToo v1.4

Posted by member 42328 on 2003-06-27 11:15:00 link

I was fighting this last night. I could get a yellow background, but no text. Worked great on the actual desktop though. On mine and DrWorms broken code, we are using LsBoxZOrder STAYONTOP. The one that works has LsBoxZOrder HUGBOTTOM. I wonder if the box is pushing itself above the jamp text?

-Jon

Posted by member 2112 on 2003-06-27 17:46:21 link

I haven't tried changing the zorder but I did try making the lsbox traparent to see if I could see anything underneath but no luck. Though it would explain why sputnic worked as well.

Above I mentioned that jamptoo was there. I was able to tell this as with the current x and y position and the width it overlaps my shortcut buttons. The result is that I can't click on these buttons and they don't do the mouse over effect.

Has anyone seen jamptoo used in a lsbox when the box is set to STAYONTOP? This isn't really optional with my theme. I guess I could use label instead of jamptoo.

Posted by member 1783 on 2003-06-28 12:13:47 link

i switched that box to stay on top. everything worked fine. :-/

Posted by member 42328 on 2003-06-28 22:36:17 link

Using your exact config, it still doesn't work for me :(
I'm going to debug it and see if I can figure it out.

-Jon

Posted by member 1783 on 2003-06-29 10:30:32 link

in which order do you load the modules? i load lsbox first with LoadModule and jamptoo is loaded by script with !ReloadModule.

Posted by member 42328 on 2003-06-29 15:03:24 link

Do you always have to reloadmodule after your wharf something in?

-Jon

Posted by member 1 on 2003-06-29 15:55:27 link

nope...just means you loaded stuff in the wrong order.

Posted by member 2112 on 2003-06-29 18:44:13 link

Setting the box to HUGBOTTOM made no difference. I also removed jAmpAlwaysOnTop which resulted in jamptoo interacting differently with the background of the box but still doesn't show anything.

"in which order do you load the modules? i load lsbox first with LoadModule and jamptoo is loaded by script with !ReloadModule."

I don't understand what you are suggesting, sorry. I load lsbox in step.rc. I then include base.rc in step.rc. I call tbar.box from base.rc. The jamptoo setting are defined after this in base.rc. JAmptoo.dll is loaded in tbar.box as a warf module.

I'm keen to try you theme to see what it does differently if you have it uploaded, Egonz.

Posted by member 42328 on 2003-06-29 22:23:27 link

DrWorm, that is almost the same as how I am loading. Settings in step.rc, step.rc loads main2.box, main2.box loads jamptoo.dll through *wharfmodule.

-Jon

Posted by member 39367 on 2003-06-29 23:22:24 link

Wow you two are just kindred spirits.

Posted by member 1783 on 2003-06-30 00:36:10 link

oh, sry *blush*
i load jamptoo as a wharfmodule too :)

well, concerning my theme, i have a huge bug in there somwhere which crashes ls so it's in alpha-state and i don't want to realease it yet. i hope i'm able to debug it by this week and upload a beta-version. the theme is called Gamma btw.

Posted by member 1783 on 2003-07-01 05:38:20 link

k, i uploaded the theme, but i'm using label now instead of jamptoo. but jamptoo settings are still there so if you want to replace label then do this:

*) in step.rc comment the line where literunner.dll is loaded,
*) in congfig\text.box comment the label-hook line and uncomment the wharfmodule line,
*) in config\script.rc comment the !AmpLabelDestroy line in !Toggle_Text bang.

Posted by member 2112 on 2003-07-04 00:22:59 link

I found the problem and I'm almost too embarrased to post it here. I had jAmpTitleBottom set to 0 believing this was meant to be the distance from the bottom. Instead it should have been the distance from the top in which case it should be 15. Obviously jamp ignores this value if it's too low when not used in a box.

Thanks for uploading your theme Egonz. I wouldn't have spotted my mistake otherwise.

Posted by member 1783 on 2003-07-04 04:19:47 link

i had same issues when i first tried out jamptoo :D
glad to help you anyway ;)

i'm just so happy :) i did benji-jumping yesterday!!!!!

Posted by member 18771 on 2003-07-10 13:27:31 link

I ran into the exact same problem as DrWorm here. However, even if I fix my jAmpTitleBottom, it still doesn't show up in the box. Any help?

Winamp.box

LsBoxX 738
LsBoxY 1149
LsBoxSticky
LsBoxUnique
LsBoxAlwaysOnTop
LsBoxRememberPosition
LSBoxDragRect 0 0 200 22
LsBoxHeight 47
LsBoxWidth 200
LsBoxDisableFX
LsBoxBackGround Wintray.png

*Shortcut "Hide" 178 4 Button3a.png Button3b.png .none !LsBoxHide Winamp

*WharfModule 6 26 188 16 $LitestepDir$modules\jampToo1.4\jAmpToo.dll

step.rc
jAmpTitleFormat "%title% [%pos%/%length%]"
jAmpX 0
jAmpY 0
jAmpW 188
jAmpH 16
jAmpAlwaysOnTop true
jAmpNoWinampText "Winamp off"
jAmpScrollMode 2
jAmpTitleFont "dungeon"
jAmpTitleFontSize 12
jAmpTitleFontColor 5A5A5A
jAmpClickDouble !Amp_Show
jAmpAllowMove false
jAmpBackColor D2D2D2
jAmpTitleTop 0
jAmpTitleBottom 16
jAmpTitleLeft 0
jAmpTitleRight 188

Posted by member 2112 on 2003-07-10 19:00:50 link

Well it doesn't appear that you are making the same mistake I did. Try turning off jAmpAlwayOnTop. I don't know if it will fix the problem but you shouldn't need it as your box is set to always be ontop.

Posted by member 42328 on 2003-07-10 22:51:04 link

It actually took a different jamp build for me to get it to work. I used the exact same settings and it didn't work with the distributed .dll but it DID work with this one i compiled...

-Jon

Posted by member 18771 on 2003-07-11 12:28:37 link

DrWorm - I thought for sure I tried that, but sure enough, as soon as I turned off jAmpAlwaysOnTop, it showed up. Thanks for the help.