Object.SetShadow Doesn't Work?

I'm not sure if this is a bug or if it never was allowed. Usually I set shadows using the GUI.
I think it RC 3.49c that I'm using.

The code below doesn't work even if expanded to using the full namespace DesktopX.Object("myobj").
I assume this should apply a shadow to all states according to the documentation?

Code: vbscript
  1. Object.SetShadow True,25,128,10,10,RGB(120,0,80)
  2. It does work for individual states
  3. Object.States("Mouse away").SetShadow True,25,128,10,10,RGB(120,0,80)




4,734 views 4 replies
Reply #1 Top
to apply to all the states just use
Object.States("").SetShadow True,25,128,10,10,RGB(120,0,80)

I guess your original post is correct, but the workaround, if that's what it is, is easy enough :)
Reply #2 Top
:rubseyes: There's someone haven't seen in awhile. :)

Agreed, I think they should just remove the first line from the manual. Better off using the states anyways.

Now carry on answering all the questions we've been waiting for you to answer! :d
Reply #3 Top

When you don't use the .States("...") method, it will just have you access whatever method is linked to the currently active state.

I think it might help if something in the guide indicated that passing an empty string to .States() method would be all inclusive. (unless I had just missed that somewhere?)

-Mike
[Stardock Support]

Reply #4 Top
There is a LOT of things that need included in some kind of docs. There is so much DX can do, its hard to cover all of it.

WB TIGGS!!!