Properties, General


Mode Current view mode.
Possible values:
  • vmodeNone: "Uninitialized" value
  • vmodeText: Text mode
  • vmodeBinary: Binary mode (fixed line length)
  • vmodeHex: Hex mode
  • vmodeUnicode: Unicode and Unicode/Hex modes
  • vmodeRTF: RTF/UTF-8 mode
  • vmodeMedia: Image/Multimedia mode
  • vmodeWeb: Internet mode
  • vmodeWLX: Plugins mode
Notes:
  • To activate the combined Unicode/Hex mode, user should call the Unicode mode twice.
  • UTF-8 encoded texts can be shown only under Windows 2000/XP/later.
ModeDetect Enables mode auto-detection on file opening.
File type may be determined by extension or sometimes by contents (extension has higher priority than contents).
ModeUndetected
ModeUndetectedCfm
Mode detection options (used when ModeDetect = True):
  • Default mode that is set when nothing is detected.
  • Allows to show confirmation (yellow panel at the top) for unknown file types. When user clicks this message, file is shown in ModeUndetected mode.
FileName (read-only) Full path of currently opened file or folder.
IsFocused Enables control focusing on file opening.
Note:
  • Set to True if you use component as main form control (e.g. you have something like Universal Viewer demo). Set to False if you use component as additional optional control (e.g. you have something like Browser demo).
BorderStyle (inherited)
BorderStyleInner
Border styles:
  • Border style of entire TATViewer control.
  • Border style of embedded controls (TATBinHex, TWebBrowser etc).
Note:
  • Set both BorderStyle and BorderStyleInner to bsNone to hide border completely.
PosPercent
PosLine
Current scroll position:
  • Relative position in percents (%).
    Valid in text, Internet, Plugins modes.
  • Line number (1-based, 0 if line number is not found).
    Valid in text modes only.
SearchStarted
SearchFinished
(read-only)
Search state flags:
  • Flag that is set after FindFirst method was called once.
  • Flag indicating that FindFirst / FindNext methods returned False on last call.
MarginLeft
MarginTop
MarginRight
MarginBottom
Printing margins.
Currently in mm.
ParentWnd (write-only) Used in ActiveX context. Must be set to parent window's handle.
ExtImages
ExtMedia
ExtInet
File-extensions comma-separated lists for different modes: Images, Multimedia, Internet.
MessagesEnabled Enables to show error message-boxes (e.g. when file path is not found).