xLabel with LsBox Thread last updated on 2003-10-25 02:37:30

Posted by member 3800 on 2003-08-13 10:46:15

Hi,
Trying to use xLabel with LsBox
xLabel is pretty much like Label for the most part.
Hooking is the same as Label:
*ModuleHook !LabelLSBoxHook

In my step.rc I have
NameX 0
NameY 20
NameWidth 250
NameHeight 20
NameText "System Name: [computerName]"
NameAlign center


and in my .box I have:
*ModuleHook !LabelLsBoxHook Name

What happens is I get a small grey box in the top left of my screen (usually signifies an empty label) and an empty LsBox. Has anyone successfully hooked xLabel with LsBox?
Thanks!
-Tesh

Posted by member 202 on 2003-08-13 14:05:36 link

make sure you're not creating the 'Name' label in a *Label statement. when you hook labels into boxes, label creation happens in !labellsboxhook.

Posted by member 3800 on 2003-08-13 17:13:39 link

Yeah, if the *Label Name line is in there then it creates the label. As it is now, there's a default label in the top left corner (like when you define a label with the label.dll, but don't provide any parameters for it).

Posted by member 3800 on 2003-08-19 00:33:53 link

been trying to mess around with this some more. Still no luck getting xLabel to hook to LsBox. Has anyone used xLabel with LsBox?

Posted by member 7 on 2003-08-19 03:24:55 link

Make sure you load xLabel before lsbox. Does label.dll work correctly?

Posted by member 3800 on 2003-08-19 17:23:25 link

I'd started by using label, they all worked fine. Then I switched over to xLabel and added/subtracted what was needed.
The labels with xLabel work find by themselves. When I try to hook them though, I first commented out the "*Label " line, then put the hook line in the .box file. What I get is a default, blank label in the top left and a blank box.

Posted by member 42328 on 2003-10-25 00:55:23 link

I am experiencing the exact same problem with the same conditions. Label DOES work, xLabel does NOT. Anybody with a functional modulehook with xlabel?

-Jon

Posted by member 42328 on 2003-10-25 02:37:30 link

Ok, I have a solution. It never worked in the first place. I fixed xLabel LsBoxHook and added a foobar2000 condition, but I'm trying to hunt down the author to submit. I'll just on irc tomorrow and see if I can hook up with somebody and get this straightened out.

-Jon