xLabel background problem Thread last updated on 2007-01-14 13:24:38

Posted by member 359390 on 2007-01-13 23:37:22

I've googled already, but either it doesn't exist or I'm too stupid to get it (probably the latter).

I've "succeeded" in creating a label which links to one of my hard drives. However, I cannot set the background for the label.

Does xLabel accept background colours, or not? I'm confused as it's been mocking me for the past two hours.

Posted by member 212670 on 2007-01-14 02:23:40 link

*Label woot
wootX 50
wootY 50
wootWidth 100
wootHeight 100
wootSolidColors FF0000 EEEEEE 000000 ;main color/light bevel/dark bevel
wootSolidBevelSize 5
wootAlwaysOnTop

Posted by member 359390 on 2007-01-14 08:09:09 link

I used that, but it still gives me a transparent background. This is what I've got:

*Label ControlLabel
ControlLabelX 120
ControlLabelY -38
ControlLabelWidth 50
ControlLabelHeight 20
ControlLabelFontColor 000000
ControlLabelJustify center
ControlLabelText "disk c"
ControlLabelSolidColors 575757 8E8E8E 000000 ;main color/light bevel/dark bevel
ControlLabelSolidBevelSize 5
ControlLabelAlwaysOnTop
ControlLabelOnLeftClick !Execute ["C:"]

The label appears, but with a transparent background. The main problem seems to be the clickability, as opposed to with shortcut2 the label seems to perform the action only when the text itself (not the transparent area) is clicked.

Basically, what I am trying to create are "desktop shortcuts" to C:, D:, Firefox, my other computers, etc, but without having to create an image for every single shortcut. Not only would this save time, but you can imagine that it's easier to drastically change the wallpaper without having to create new images :)

Right now I've got two images, very simple (as I like it :) - background of #575757, white text, and a small black border around it. I'm thinking this should be achievable with xLabel as well, but the documentation that came with the module and the one I find don't help me out with the background or border colors.

Posted by member 5575 on 2007-01-14 12:04:45 link

Are you using the newest version of xlabel in conjunction with the xpaintclass DLL? If so, I think you need to define the "PaintingMode" for xlabel, and the "solidcolors" setting is no longer used. Not knowing what version you're using, I can't say for sure whether this is your problem or not.

Posted by member 212670 on 2007-01-14 13:24:38 link

Ahh good call. I don't use xpaintclass, so it works fine for me.