Applies to

Window controls


Specifies the time in milliseconds that an opening or closing animation effect associated with a window takes to complete.


Use the AnimationTime property to control the number of milliseconds an opening or closing animation takes to execute. The value must be a positive integer in the range 1 to 5000 milliseconds. The default value is 200 milliseconds. While an opening or closing animation executes, the application waits for it to complete, so in general you should keep the animation time short.

In a painter

To set the AnimationTime property on a window:

  • Select or type a value in the AnimationTime spin control on the General page of the window's Properties view.

In scripts

The following statement sets the AnimationTime property for the w_splash window to 500 milliseconds:

w_splash.AnimationTime = 300

See also