xlabel labels on top of labels Thread last updated on 2004-08-11 10:41:22

Posted by member 108633 on 2004-08-10 23:04:33

I have 3 labels, lets call them label1, label2, and label3. I want all of them bellow application windows. I want label2 and label3 always ontop of label1. I load them in order of the way I want them, kinda like layers. But if i accidentally click on label1, then label1 will be on top of labels 2 and 3. I want labels 2 and 3 on top of label1 at all times. How do I do this?

Posted by member 37809 on 2004-08-10 23:16:13 link

If your design permits it, you could hook label2 and label3 inside label1.

Otherwise try zorder-0.2

Posted by member 108633 on 2004-08-10 23:24:20 link

how do I hook label 2 and 3 inside label1? I'm sorry, this is my first time using xlabel.

Posted by member 37809 on 2004-08-10 23:30:20 link

xLabel's .chm docs has examples. Make sure you set your label2x, label2y, label3x, label3y coordinates relative to the top left of label1, because that's what hooking implies.

Posted by member 108633 on 2004-08-10 23:45:34 link

where is the chm file, its not in the modules folder.

Posted by member 32550 on 2004-08-11 03:49:27 link

the problem is, that chm files are not decompressed, so you can find it in your modules\archive\xlabel-XX.zip file.


to hook a label into another:
*label 1label
1Labelx
1Labely
1Label...
*1LabelModuleHook !labellsboxhook 2Label
*1LabelModuleHook !labellsboxhook 3Label


now, the hooked labels have a x and y pos from the beginning of the base label, not your desktop position:
2Labelx 0
3Labely 0
= top left corner of 1Label

and, if you hook 2/3Label, don't set the
*Label 2Label
line. this line has only to be there if you paint it directly on the Desktop

Posted by member 108633 on 2004-08-11 10:41:22 link

It worked. Thanks for the help.