CommandBars Articles and Tutorials

Changing Popup Menu Animation Style

Author: Mike Palmatier
Platform: Visual Basic 6.0

You can configure how your menus will be displayed using animation effects. You can choose from one of several predefined effects that include Random, Unfold, Slide, Fade and None.

The code below will apply the Unfold animation the the menus when they are displayed. The xtpAnimateUnfold flag comes from the XTPAnimationType enumeration which holds all of the different animation types that can be used.

CommandBars.Options.Animation = xtpAnimateUnfold

Below are some animations that illustrate some of the styles that you can use for your popup menus:

Unfold Animation
Unfold Animation

Slide Animation
Slide Animation

Fade Animation
Fade Animation