To set the Shadow effect on the NormalObject State for a Button object named Option1 with a shadow height of 5 pixels and width of 3 pixels, the colour yellow, a 50% transparency and a blur of 3 pixels, use the following syntax:
MyColour = RGB(253,250,0)
Option1.SetShadow(5,3,50,MyColour,3)
To set the same Shadow effect as Example 1 above on the Mouse Over Object State for a Button object named Option1, use the following syntax:
MyColour = RGB(253,250,0)
createEffect = Option1.GetAppearance("Mouse Over")
createEffect.SetShadow(5,3,50,MyColour,3)
see also:RemoveShadow, RGB and GetAppearance