Methods, Localization-related


SetTextPopupCaption Sets caption text for one of context menu items.
Parameters:
  • Id (Integer) -- one of values:
    vpCmdCopy -- "Copy" item;
    vpCmdCopyHex -- "Copy as hex" item;
    vpCmdCopyLink -- "Copy link" item;
    vpCmdSelectLine -- "Select line" item;
    vpCmdSelectAll -- "Select all" item;
    vpCmdEncMenu -- "Encodings menu" item.
  • S (WideString) -- caption text.
SetMessageText Sets content for one of localizable strings.
Parameters:
  • Id (Integer) -- string id.
  • S (WideString) -- string text.
Possible values of Id and default strings values are shown in the list below:
  • 0 -- MsgViewerCaption = 'Viewer'
  • 1 -- MsgViewerShowCfm = 'Format unknown'#13'Click here to show binary dump'
  • 2 -- MsgViewerShowEmpty = 'File is empty'
  • 3 -- MsgViewerErrCannotFindFile = 'File not found: "%s"'
  • 4 -- MsgViewerErrCannotFindFolder = 'Folder not found: "%s"'
  • 5 -- MsgViewerErrCannotOpenFile = 'Cannot open file: "%s"'
  • 6 -- MsgViewerErrCannotLoadFile = 'Cannot load file: "%s"'
  • 7 -- MsgViewerErrCannotReadFile = 'Cannot read file: "%s"'
  • 8 -- MsgViewerErrCannotReadStream = 'Cannot read stream'
  • 9 -- MsgViewerErrCannotReadPos = 'Read error at offset %s'
  • 10 -- MsgViewerErrDetect = 'Program could not detect file format'#13'Dump is shown'
  • 11 -- MsgViewerErrImage = 'Unknown image format'
  • 12 -- MsgViewerErrMedia = 'Unknown multimedia format'
  • 13 -- MsgViewerErrOffice = 'MS Office module doesn''t support this file type'
  • 14 -- MsgViewerErrInitControl = 'Cannot initialize %s'
  • 15 -- MsgViewerErrInitOffice = 'Cannot initialize MS Office control'
  • 16 -- MsgViewerErrCannotCopyData = 'Cannot copy data to Clipboard'
  • 17 -- MsgViewerWlxException = 'Exception in plugin "%s" in function "%s"'
  • 18 -- MsgViewerWlxParentNotSpecified = 'Cannot load plugins: parent form not specified'
  • 19 -- MsgViewerAniTitle = 'Title: '
  • 20 -- MsgViewerAniCreator = 'Creator: '
  • 21 -- MsgViewerPageHint = 'Previous/Next page'#13'Current page: %d of %d'
Notes:
  • Not all mentioned strings are really used in the ActiveX version.
  • #13 means CR (carriage return) character.