Partager via


How to: Update the Status Bar

The Status Bar is a control bar located at the bottom of many application windows that contains one or more status text lines or indicators.

To update the Status Bar

  1. Implement IVsStatusbarUser on each individual view object (DocView) that your editor provides, such as a form view and a code view.

  2. When the IDE calls SetInfo, update the information in the Status Bar by calling the methods of IVsStatusbarUser.

    Note

    The IDE calls SetInfo only when your document window is initially activated. For the remainder of the time that your document window is active, you must update the Status Bar information as the state of your editor changes.

Robust Programming

A Status Bar contains four separate fields:

  • Status text

  • Progress bar

  • Animated icon

  • Editor information

For more information, see Status Bars.

The IDE automatically calls the SetInfo method of your IVsStatusbarUser implementation when your document window is activated.

The VSPackage implementer is responsible for updating the status text in the status bar. The IDE resets this string to "READY" if the status text field is set to empty text ("") at idle time.

See Also

Concepts

Status Bars