Hooking labels to LsBox Thread last updated on 2003-07-31 17:36:26

Posted by member 3800 on 2003-07-31 01:53:56

Ok, I've read all the documents, and search the forums to no avail. Trying to hook labels to a box but they don't show up. The box appears but the labels don't. Here's the code I have:

step.rc ->
cpux 10
cpuy 50
cpuwidth 100
cpuheight 20
cputext "CPU: [cpu]"
cpujustify center
cpulsboxname lsbox

lsbox.box ->
LsboxName lsbox
LsboxX 10
LsboxY 50
LsboxWidth 200
LsboxHeight 100
LsBoxBackGround boxbg.bmp
*ModuleHook !LabelLsBoxHook cpu

I've created the cpu label and it shows up without the "cpulsboxname lsbox" line, so that's ok. Am I missing a "*ModuleHook..." somewhere in step.rc?
Thanks for any help.

Posted by member 503 on 2003-07-31 02:34:19 link

The LabelLSBoxName setting isn't used anymore. Try removing it and see what happens.

Posted by member 3800 on 2003-07-31 08:59:42 link

Without the "cpulsboxname lsbox" line, the label simply appears on the desktop rather than in the box.

Posted by member 7 on 2003-07-31 11:34:50 link

Remove the label from your "Labels" line(s). Load label BEFORE lsbox.

Posted by member 3800 on 2003-07-31 17:31:38 link

k deleted the "cpu" from the "labels" line, and labels.dll is loaded before lsbox.dll. But still I get no label in the lsbox, it's just the box with the background image.

Posted by member 3800 on 2003-07-31 17:36:26 link

Got it.
My goof-up, was messing with another theme that had an older version of label =/
All works good now.
Thanks.