Object.SetShadow Doesn't Work?

Saturday, November 3, 2007 by SirSmiley | Discussion: DesktopX

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)




Tiggz
Reply #1 Thursday, December 20, 2007 1:40 PM
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
SirSmiley
Reply #2 Thursday, December 20, 2007 2:06 PM
: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!
milksama
Reply #3 Thursday, December 20, 2007 2:35 PM

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]

RomanDA
Reply #4 Friday, December 21, 2007 8:50 AM
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!!!

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01