User Guide

196
VersionText (OleString, read-only)
Application name and version.
Width (integer)
Width in pixels of the main application window. You can use this property with the
Height property to investigate the size of the main window as well as to resize the
window.
WindowState (integer)
Set/get widow state
Allowed values are:
0- Normal
1- Minimized
2- Maximized
General methods
BringToFront
procedure BringToFront()
Brings the main window to the front of other applications.
BrowseText
procedure BrowseText(sText, BaseHREF: OleVariant)
Displays the passed text in the internal browser. The
BaseHREF parameter is used to
interpret relative paths. For local files,
BaseHREF should be the folder the file is in.
CloseAll
function CloseAll(wbPromptToSave: WordBool): WordBool
Closes all open documents. If
wbPromptToSave is True, the user will be prompted to
save any changes. Returns True if successful (that is, the user didnt cancel if
wbPromptToSave is True).
ExecCommand
procedure ExecCommand(nCmdID: integer, nOptions: integer)
Execute a specific command based on its CommandID. See Table of CommandID
Values on page 206 for available commands. nOptions can be used with cursor
movement commands to determine whether text is selected during cursor movement
(nOptions = 1) or unselected (nOptions = 0). For all other commands, pass nOptions as
0.
ExtractFileName
function ExtractFileName(const wsFile: WideString): WideString
Returns only the file portion of the passed filename.