User Guide

199
InstallParserScript
function InstallParserScript(const wsScriptFile, wsFileExtAssoc: WideString): WordBool
Installs a parser (color-coding) script and associates it with the passed list of
semi-colon separated file extensions. If an existing parser is assigned to any of these
extensions, they are removed from the existing parser and assigned to the new one.
The parser script is copied from the passed location to the application \Parsers
subdirectory. Returns False on error.
LogMemoryStatus
function LogMemoryStatus(const wsLogFile, wsDescrip: WideString)
Writes the current memory status to a log file.
wsLogFile: logfilename creates the file if it does not exist, otherwise appends
status to the file.
wsDescrip: text description text for the entry
MessageBox
MessageBox(const wsText, wsCaption: WideString, nType: Integer): Integer
Displays a message dialog box for obtaining a user response. The
nType parameter
determines the type of dialog box displayed, and should be a combination of the
following sets of values:
MB_ICONINFORMATION = 64
MB_ICONWARNING = 48
MB_ICONQUESTION= 32
MB_ICONSTOP= 16
MB_ABORTRETRYIGNORE= 2
MB_OK = 0 (Default)
MB_OKCANCEL = 1
MB_RETRYCANCEL = 5
MB_YESNO = 4
MB_YESNOCANCEL = 3
The functions result will contain the ID of the button that was pressed, which will be
one of the following:
IDOK = 1
IDCANCEL = 2
IDABORT = 3
IDRETRY = 4
IDIGNORE = 5
IDYES = 6
IDNO = 7
IDCLOSE = 8
NewDocument
procedure NewDocument(wbUseDefaultTemplate: WordBool)
Creates a new document, optionally from the default template.