SetBtnColour()

Example 1:

To set the Button style on the NormalObject State for a Button object named Option1 to a surface colour of green, use the following syntax:

MyColour = RGB(0,255,0)
Option1.SetBtnColour(MyColour)

Example 2:

To set the same Button style as Example 1 above on the Mouse Over Object State for a Button object named Option1, use the following syntax:

MyColour = RGB(0,255,0)
createEffect = Option1.GetAppearance("Mouse Over")
createEffect.SetBtnColour(MyColour)

 

see also:RemoveBtnColour, RGB and GetAppearance

Close