Setting Status Bar Properties at Runtime

The fourth and fifth panels of the StatusBar control located on the WindowsCommonControls form are set at runtime by the UpdateStatusBarControl subroutine, found in the General Routines in the form module.

To open the module to the subroutine desired, follow these steps:

1.
Open the WindowsCommonControls form in Design mode.
2.
Click the Code toolbar button on the Form Design toolbar.
3.
Choose the UpdateStatusBarRoutine from the Procedure combo box.

The routine in Listing 14.13 performs two actions. It sets the picture property of the fourth panel to the selected tab picture, and displays (in the fifth panel) the caption of the chosen tab.

Note

Like other collections in Access and other Windows development ...

Get F. Scott Barker's Microsoft® Access 2000 Power Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.