Previous Document Next Document
AppWindow.Caption

Property Caption As String

Member of AppWindow

The Caption property returns or sets 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.

The following code example sets the caption of the CorelDRAW main application window.

Sub AppWindowCaption() 
 AppWindow.Caption = "My Draw Application" 
End Sub 
The following code 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 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.