I am having a hard time trying to deal with the EffectColor property of DropShadowsSettings object.
The docs say it should be a Swatch or array.
I have tried setting it with (IDrect is a proper Rectangle object, Doc the current document):
1) A Color object: IDRect.FillTransparencySettings.DropShadowSettings.EffectColor = Doc.Colors(1)
An error returned saying that swatch was expected but color was received
2) A Swatch object: IDRect.FillTransparencySettings.DropShadowSettings.EffectColor = Doc.Swatches(1)
An error returned saying that swatch was expected but swatch was received (what gives !?!?!?!!)
3) A string: IDRect.FillTransparencySettings.DropShadowSettings.EffectColor = "None"
An error returned saying that swatch was expected but "None" was received
Especially seeing case 2) I suspect a problem in the Visual Basic type library, can you give some help or suggestion? I'm almost dead in the water...
InDesign 7.0.3 (CS5) in Windows XP SP3, Visual Basic 6.0 SP6.
Thank you very much in advance,
thank you for your reply.
Actually, my problem is a bit wider than simply selecting a proper existing swatch.
Indeed, I create new colors or swatches and try to assign them with the very same outcome.
Furthermore, assigning the swatches(1) item in other situations is perfectly fine, so I guess there must be a strong problem in assigning the EffectColor property. I'd really like to take a look at a code portion that can do this without VB6 giving an error.