loading lsxcommand in an lsbox. successfully. Thread last updated on 2004-03-07 14:44:33

Posted by member 106894 on 2004-03-07 02:09:23

was reading the docs for lsxcommand 1.8.5 looking for the relevant ModuleHook command in order to get my commandbox to show in my box...(whew! i found it) and upon adding the necessary lines and recycling, my theme now throws errors and quits. is there something i've forgotten to do? i'm fairly new at theming...any help would be much appreciated.

here's my lsbox code:
*ModuleHook !SystrayHook
*ModuleHook !LabelLsBoxHook SysTime
*ModuleHook !LabelLsBoxHook SysDate
*ModuleHook !CommandBoxHook

and my command box code:
CommandX $CoordX$
CommandY $CoordY$
CommandWidth 235
CommandHeight 12
CommandBorderSize 0
CommandBGColor D0E0EA
CommandTextColor 4C0003
CommandTextSize 8
CommandTextFontFace "silkscreen"

CommandNotMoveable
CommandHiddenOnStart
CommandNoCursorChange
CommandNoWarnOnError
CommandAssumeNetAddress
CommandHideOnUnfocus
CommandWaitForBox

Posted by member 1 on 2004-03-07 03:08:48 link

yer missing about 20 lines of LSBox config.

Posted by member 106894 on 2004-03-07 03:40:14 link

i can put the rest of my lsbox code in, i just thought my post might be a little long if i put in all the code. here's the rest (which lies above the lsbox lines i already quoted):
LsBoxName PanelTray
LsBoxX 0
LsBoxY -51
LsBoxWidth 347
LSBoxHeight 46
LsBoxBackGround tray.png
LsBoxBackgroundOffs 3 20 3 3
LSBoxDragRect 334 1 347 46
LsBoxSnapArea ~334 21 346 -5
LsBoxZOrder STAYONTOP
i tried loading lsxcommand earlier by *wharfmodule, but got nothing but errors. at least it's not throwing errors anymore. i just can't get the command to show up in my lsbox (or, indeed, anywhere on my desktop) without commenting out 'commandwaitforbox' and the !commandboxhook bang.

Posted by member 106894 on 2004-03-07 05:05:23 link

never mind...thanks in advance to anyone who might have helped me. i solved the problem (which cost me a whole day btw) by upgrading lsbox to the newest version.
boy, do i feel stupid. :)

Posted by member 106894 on 2004-03-07 05:09:57 link

no, wait. it still doesn't work properly...i still can't get the command to load into my lsbox. but at least i can see the darn thing. progress!

any help at this point would still be appreciated...

Posted by member 106894 on 2004-03-07 05:17:25 link

at last! anyone still need help with this? i figured it out. put the lsxcommand code in the box file you want it to show up in, and voila!

Posted by member 7 on 2004-03-07 11:49:53 link

The *ModuleHook !CommandBoxHook line needs to be in the .box file, the rest should be in step.rc/theme.rc. But if it works anyway... :)

Posted by member 106894 on 2004-03-07 14:44:33 link

eventually i did that (put the command code back in theme.rc). sometimes recycling a theme to show major changes doesn't give a complete refresh...i sometimes have to change to another theme and back several times before they'll show up, which is what happened here. i'm assuming it's some sort of quirk with my system...