ckhotspots problem with onLeave Thread last updated on 2006-03-03 12:10:24

Posted by member 212656 on 2006-03-02 03:42:00

Hi all, I'm having troubles

I'm trying to make a label hidden when the mouse is over a hotspot, and revealed when the mouse leaves the hotspot. I'm new to litestep, so I'm unsure of the proper syntax. Here's what I have:

*ckHotspot 0 -10 $ResolutionX$ 10 [!LabelHide TaskGroupLabel][!LabelShow TaskGroupLabel]

It hides on mouseover, but it won't show on mouseexit. What am I doing wrong?

Posted by member 212670 on 2006-03-02 04:01:44 link

Use quotes:
*ckHotspot 0 -10 $ResolutionX$ 10 "!LabelHide TaskGroupLabel" "!LabelShow TaskGroupLabel"


Btw, I checked out that site in your profile. That is some really cool Flash.

Posted by member 212656 on 2006-03-02 10:38:27 link

It still won't work. The modules I'm using are xlabel-3.4.9 and ckHotspots-2.3.3.

What I'm trying to do is make a taskbar that will stay hidden unless I put my mousepointer at the bottom of the screen (like explorer could). If anyone out there knows a better way to do this, please show some mercy and let me know!

And thanks for the site compliment. If litestep used actionscript, I'd be rockin'! But alas...

Posted by member 280260 on 2006-03-02 14:32:41 link

Why do you have it hide on enter and show on leave?

Posted by member 212670 on 2006-03-02 14:43:18 link

I tested out the hotspot with...

*ckHotspot 0 -10 $ResolutionX$ 10 "!alert enter" "!alert exit"

...and it worked for me. Should work the same for label !bangs.

Another approach you could take would be just to move the bar to 1px along the monitor edge, and have it hide/show OnEnter/OnLeave. If it's a bunch of things hiding/showing, you could just hook it all in to a label. If you didn't want to see it along the edge, you could just turn its transparency to 1 when it's against the screen edge, and 255 when it's shown.

Posted by member 212656 on 2006-03-02 16:06:56 link

jqubit: I'm just in "testing mode" now. If I ever get the code to work, I'll switch it around.

SOMETHING'S WRONG. I can't seem to get even the simplest of Bangs to work. Here's some code: (I've got a Taskbar and a Vtray "hooked" into a label called "TaskGroupLabel". In the "taskgrouplabel" part, I'm doing a simple "alert" test with the leftclick, but it doesn't do a damn thing.)

*Label TaskGroupLabel
TaskGroupLabelAlwaysOnTop true
TaskGroupLabelHeight 32
TaskGroupLabelWidth $ResolutionX$
TaskGroupLabelX 0
TaskGroupLabelY -27

;---WHY WON'T THIS WORK?
TaskGroupLabelOnLeftClick !alert "click"
;-----------------------

*TaskGroupLabelModuleHook !VtrayHook
*TaskGroupLabelModuleHook !TaskbarBoxHook

TaskbarX 0
TaskbarY 0
TaskbarWidth $ResolutionX-85$
TaskbarHeight 32
TaskbarMaxTaskWidth 160
TaskbarBorder 3 0 3 6
TaskbarButtonBorder 4
TaskbarSpacing 2
TaskbarButtonFontBorder 20 0 0 0
TaskbarIconSize 20

VtrayX -85
VtrayY 0
VtrayDirection left
VtrayAutoSize false
VtrayWrapCount 7
VtrayHeight 27
VtrayWidth 85
VtrayIconSpacingX 2
VtrayIconSpacingY 2
VtrayBgColor eaeaea
VtrayBorderColor 999999


PLEASE HELP!

Posted by member 212670 on 2006-03-02 17:01:48 link

You don't have an image or solidcolor set for your label.

Posted by member 212656 on 2006-03-02 23:40:37 link

I set a solid color and it still doesn't work.

Get this: The taskgrouplabel holds my taskbar and vtray, right? well I Hooked another label into it called TaskLine which is just a 1px horizontal line (with solidcolor) to make a top border. Like I mentioned, it's hooked into taskgrouplabel. I CAN CLICK ON IT AND THE ALERT WORKS! Why, in the name of god, won't it work on the taskbar/vtray? why just the line? Sweet merciful jesus, WTF?

thank you.

Posted by member 5575 on 2006-03-03 08:01:43 link

Are you really clicking on TaskGroupLabel, or are you clicking on the taskbar and vtray, which are on *top* of that label?

Posted by member 212656 on 2006-03-03 11:52:26 link

OK, I've finally gotten it working like I want it to. Turns out trying to use the actual label as a hotspot was killing me, so I tried ckhotspots again and it worked this time.

thanks for the help everyone!

Posted by member 5575 on 2006-03-03 12:10:24 link

I use labels as hotspots without any problems, but all the labels I use for that purpose are standalone, i.e., no hooking of other modules, labels, or docking involved. It seems like hooking can lead to 'whose got focus?' issues - not good for a reliable hotspot.