2 Replies Latest reply on Oct 10, 2011 9:25 AM by mabian

    Problems with DropShadows EffectColor Property in CS5 with VB6

    mabian

      Hello all,

       

      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,

          Mario