Control Reference > VSPrinter Control > VSPrinter Properties > NavBarText Property |
Returns or sets the text displayed on the document navigation bar.
[form!]VSPrinter.NavBarText[ = value As String ]
You can use the space on the right of the navigation bar buttons to display short messages to the user. A typical use for these messages would be to display messages related to the state of the control.
For example, the following code uses the NavBarText property to display its progress while generating a document:
Private Sub CreateDoc()
vp.NavBarText = "Creating document"
vp.StartDoc
CreateDocBody
vp.EndDoc
vp.NavBarText = ""
End Sub
Private Sub vp_NewPage()
vp.NavBarText = "Creating page " & vp.PageCount & "..."
End Sub
Note: The message is displayed using the same font used to display the current page and page count on the navigation bar. This font is fixed and cannot be changed. |
String