The Caption property returns or specifies the display text of the main application window. The caption appears as text in the title bar of the application window. If the document window is maximized when using the Caption property, the document title also displays after the caption in the title bar of the main application window.
Examples:
The following VBA example sets the caption of the CorelDRAW main application window.
Sub AppWindowCaption()
AppWindow.Caption = "My Draw Application"
End Sub
The following VBA example resets the caption.
Sub ResetCaption()
Dim NewCaption As String
NewCaption = "My New Caption"
If AppWindow.Caption <> NewCaption Then
AppWindow.Caption = NewCaption
End If
End Sub