StatusBar::Animate Method (Boolean, Object^)

 

Displays an animated picture in the StatusBar.

Namespace:   EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

void Animate(
	bool On,
	Object^ AnimationType
)

Parameters

On
Type: System::Boolean

Required. Indicates whether to turn the animation on (True) or off (False).

AnimationType
Type: System::Object^

Required. A vsStatusAnimation constant indicating an animated icon to display.

Alternatively, AnimationType can also take an IPicture or IPictureDisp which is a bitmap 16 pixels high and a multiple of 16 pixels wide. To turn off the custom animation, you must pass the same exact IPicture or IPictureDisp.

Sub AnimateExample()
   Dim SBar As StatusBar
   SBar = DTE.StatusBar
   ' Turn on the "save" Status Bar animation.
   SBar.Animate(True, vsstatusanimation.vsStatusAnimationSave)
   MsgBox("Notice the Status Bar animation.")
   ' Turn off the animation.
   SBar.Animate(False, vsstatusanimation.vsStatusAnimationSave)
End Sub
Return to top
Show: