Need Help Configuring Four Objects in DesktopX

Trying to get several objects to mouseover-translucent/mouseaway-transparent at the same time

Hello,

The title is self-explanatory, but this is what I am trying to do:

I have a:

1)Startbutton

2)Showdesk Button

3)Taskbar

4)Tray

And I've gone into their individual properties and set these functions (transparency, etc) in their mouseover/mouseaway properties...so far so good, they each work individually, but:

I tried to use the "message" property to send each of the other three in the group the (mouseover or mouseaway) message, so that they would all do it at the same time.

It does not work, it causes a DesktopX crash :'(

THEN:

I also tried to group these objects as a normal group or a combine group, and still doesn't do what I want.

Short of scripting (in the which I've not got the skill) how can I get these three objects to behave the way I want, all at the same time?

ALSO:  It seems to me, that the "showdesk" object, somehow causes the crash...is it possible that it cannot be included in this because of the type of its function (ie: its showing the desktop so somehow needs to be visible?)

I'm only skilled enough to change scripts already written, or write some extremely simple ones, but it seems to me that sending messages from one to the other should work, but there doesn't seem to be a way to broadcast it to a select group, only to an ObjectID...If I could sent it to an entire group, then it should work the way I want, no?

I'd appreciate any input, ya'll can email my Reachby Addy if you care to!
Thanks,

Joe

2,446 views 5 replies
Reply #1 Top
Easiest way I know of is via a script. You can have either have separate graphics images one for mouse over and 1 for mouse away for each object or set the object opacity for each state using just 1 graphic image per object. The Sub Object_OnStateChange(state) subroutine would do the object state setting. If you used my suggestion of using a mouse away and mouseover state for each object,

your code would look like this:

Sub Object_OnStateChange(state)
DesktopX.Object("myobject1").state = state
DesktopX.Object("myobject2").state = state
DesktopX.Object("myobject3").state = state
DesktopX.Object("myobject4").state = state
End Sub

Copy this code into each of your objects and of course you don't need the first statement in the subroutine in myobject1 or the second statement in the subroutine in myobject2, etc. I haven't tested this but, I'm pretty sure this will work as presented. ;) 
Reply #2 Top
That's exactly what I am looking for, I'm sure it will work, if I get the syntax correctly, I'll play with that and if I have any prob's I'll let ya'll know!
Thanks Lotz BigDogFeeT!
Reply #3 Top
You're welcome and it works, I tested it just now. Be sure to exclude DesktopX.Object("myobject1").state = state from the script in "myobject1"; DesktopX.Object("myobject2").state = state from the script in "myobject2" and so forth. Otherwise, it will continuously change states.

Reply #4 Top
Ya, thanks, it works great!
Hey? Where can I get a step by step tutorial on DesktopX scripting? I've looked here on the site, but can't find anything like that...any ideas?

Joe
Reply #5 Top
hmm ok,
well I've managed to cause that loop your talking about  X-( 

I have (now) two objects
Object ID "Tray"
and
Object ID "Taskbar"

In Taskbar I have the script:

Sub Object_OnStateChange(mouseover)
DesktopX.Object("Tray").state = mouseover
End Sub
Sub Object_OnStateChange(mouseaway)
DesktopX.Object("Tray").state = mouseaway
End Sub

And in Tray the script:

Sub Object_OnStateChange(mouseover)
DesktopX.Object("Taskbar").state = mouseover
End Sub
Sub Object_OnStateChange(mouseaway)
DesktopX.Object("Taskbar").state = mouseaway
End Sub

So I'm not sure why I'm getting the loop. I could understand, of course if I had ObjectID "Taskbar" in the Taskbar script, etc...but I don't?

And I did have it working till I messed something up.

Care to show me where I am so dense?
:D
Joe