Previous Document Next Document

Object Model Reference : Classes : A : AppWindow : Properties : AppWindow.Caption


AppWindow.Caption

Property Caption As String

Description

Member of AppWindow

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.

VBA example 1

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

Sub AppWindowCaption()
 AppWindow.Caption = "My Draw Application"
End Sub
VBA example 2

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.