LSbox Thread last updated on 2005-07-20 03:48:38

Posted by member 124072 on 2005-07-19 14:27:10

I've got a nice hefty lsbox with some labels hooked into it. The box itself is a giant transparent image with the labels giving it life. now my problem is this - if you click on the transparent area, it puts focus on the box. Is there a way to make the box not steal focus on areas that are clicked on that use magic pink?

Posted by member 12025 on 2005-07-19 16:10:28 link

/me picks up dead-horse-beating stick

Odd, but it is lsbox. Tried doing it without lsbox?

If the area is 100% transparent, why not use labels? If fully transparent and draggable, labels all docked together (scripting is the easiest way to do that part)

Posted by member 124072 on 2005-07-19 17:21:30 link

tryed it, and didn't work. I did
*powerModuleHook !LabelLsBoxHook base

power being the big transparent box and base being an image. Both labels are coming up transparent. I made an equal sized image of a big white box for the label power and when I did the other label showed up.

Posted by member 248213 on 2005-07-19 19:14:35 link

thats "Hooking"

Cerbie said nothing of hooking. (Your problem is the labels inherit the transparency from the Parent label)

Try "Docking" the labels to each other, like cerbie suggested.

Posted by member 12025 on 2005-07-19 19:17:16 link

That's how it should work (it aught to have worked that way in lsbox, too, I think). The main window's alpha is the alpha of it and anything inside of it, hence docking.

What exactly does this box look like, and why was hooking used for it? If the boxes overlap, or need to be moved releative to one another, what scripting module do you use?

Posted by member 124072 on 2005-07-19 21:42:31 link

its a 412x412 transparent box, im using it to hook/dock objects to make a theme that has a 50x50 box with the time, and then on all 4 sides there will be tabs that collapse/expand to show lsxcommand, winamp controls, vwm, taskbar, and the systray. i want to have the entire thing draggable, so I thought if I hooked them into 1 giant transparent label i could move them around, but like fractaldesign said, if 1 is transparent so is the other, and vice versa. I tryed docking but that wont work,because if you drag the main label and hit the bar to show the lsx, the lsx doesnt come along with it, it stays at the original coordnates.

Posted by member 248213 on 2005-07-19 21:54:33 link

You cant dock them. Only dock other labels to one another,

You could try Hooking. Use a transparent image for the "power" label/box, instead of setting an alphatransparency.
Make images transparent with "Magic Pink"

This should work...

Posted by member 124072 on 2005-07-19 22:54:49 link

thats what I did, i made a 412x412 pic of ff00ff, made that an lsbox, but whereever there was a transparent part (were ever there wasnt a label with an image) and if you clicked on the transparent part, it would still steal the focus. Docking is my last choise, because theres no way to dock other mods with xlabel...

I wanted to make a lsbox so I could throw everything in there and have it move all together, but that didn't work :(

Cerbies suggestion makes sense up to the part where I introduce LSXcommand and VWM, how on earth do I dock those?

Posted by member 124072 on 2005-07-19 23:38:37 link

*sorry for double post*
screw that last idea. now my only question is: can you dock a lsbox to a label? like I have 1 group of labels all docked to eachother, can i dock a lsbox like i dock a label?

Posted by member 248213 on 2005-07-19 23:43:27 link

Why are you using labels and LSbox.

xLabel can do everything LSbox can but better.

Plus: It wont steal the focus (The Hooked elements will always be above the parent label)

Hope this helps...

ps: If you are using the Label module, I am sorry, xLabel has become synonymous with "Labels" now. So whenever I refer to "Label" I mean "an xLabel label"

:)

Posted by member 124072 on 2005-07-19 23:47:29 link

yea, im using xlabel 3.3.8, and the reason I wanted LSbox was so I could add lsxcommand and other mods to hook. Is there a way to hrm...make labels out of mods?

Posted by member 12025 on 2005-07-20 00:08:02 link

What exactly is the design? Not just what labels are there, but what are you doing that makes hooking/docking appealing, and what are the limits that need to be set for them? What you want to do is very possible, but there is more than one way to do it, and that's just from you've said, which may not include all of what you're really trying to get done.

Easiest, but maybe not the best, depending on what you need, is to hook a module into a label, then dock to the label. If the module is to be resized, set the label to resize the module on resize, and resize the label for it (Ex: VWMBoxOnResize !ParseEvars !vwmsize %#VWMBoxCurrentWidth%# %#VWMBoxCurrentHeight%#).

Posted by member 212670 on 2005-07-20 00:39:03 link

I get the impression you might be a little foggy on the whole hooking other modules (like lsxcommand) in to an xlabel thing, so here's a really simple example for you. You can just copy/paste this in to a blank theme.rc (it's a theme in itself...probably a rank 90% at custo). click here That's the basic idea for hooking any other hookable module. It's just a matter of replacing the "!CommandBoxHook" and "CommandWaitForBox" with the right definitions for the specific module being hooked.

Posted by member 124072 on 2005-07-20 01:29:33 link

nono, i know how to hook, but i want to know if you can dock a LSbox to a xlabel. is that possible?

Posted by member 212670 on 2005-07-20 01:43:08 link

Oh hmm "I wanted LSbox was so I could add lsxcommand and other mods to hook" kind of threw me off, I guess. You really don't need lsbox for anything if you're using xlabel...Just hook stuff you want in to an xlabel.

Posted by member 12025 on 2005-07-20 01:46:28 link

You can't just dock a LsBox to a label, no. You can replace any box of LsBox with a label.

Posted by member 124072 on 2005-07-20 01:50:14 link

alright, i got my problem fixed by taking a look at the example. god bless you people. (this is the first time that i'm making a theme using hooking and docking) thanks for the help!

Posted by member 248213 on 2005-07-20 03:48:38 link

Woot! Job well done team! :D

Stalefist you soooo better upload your theme when its done :)