📄 usage properties.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>Usage: Properties, General</title>
<link href="Main.css" rel="stylesheet" type="text/css">
</head>
<body>
<h2>Properties, General</h2>
<hr>
<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="width: 40%;"><font color="DarkBlue">Mode</font></td>
<td>Current view mode.<br>
Possible values:<br>
<ul>
<li><span style="font-weight: bold;">vmodeText</span>: Text mode</li>
<li><span style="font-weight: bold;">vmodeBinary</span>: Binary mode (with fixed line length)</li>
<li><span style="font-weight: bold;">vmodeHex</span>: Hex mode</li>
<li><span style="font-weight: bold;">vmodeUnicode</span>: Unicode and Unicode/Hex modes</li>
<li><span style="font-weight: bold;">vmodeRTF</span>: RTF/UTF-8 mode</li>
<li><span style="font-weight: bold;">vmodeMedia</span>: Image/Multimedia mode</li>
<li><span style="font-weight: bold;">vmodeWeb</span>: Internet mode</li>
<li><span style="font-weight: bold;">vmodeWLX</span>: Plugins mode</li>
</ul>
Notes:<br>
<ul>
<li>To activate the combined Unicode/Hex mode, user should call the Unicode mode twice.</li>
<li>Plugins mode is available only when "WLX" define is uncommented in ATViewerOptions.inc file.</li>
<li>UTF-8 encoded texts can be shown only under Windows 2000/XP+.
This is due to a limitation of MS RichEdit control.</li>
</ul>
</td>
</tr>
<tr>
<td><font color="DarkBlue">ModeDetect</font></td>
<td>Enables mode auto-detection on file opening.<br>
File type may be determined by extension or sometimes by contents (extension has higher priority than contents).
The global variable <span style="font-weight: bold;">ATViewerOptions</span> contains extensions lists for different modes,
it's declared as record:
<pre>
type
TATViewerGlobalOptions = record
ExtText: string; //Text files
ExtRTF: string; //RTF files
ExtImages: string; //Image files
ExtMedia: string; //Video and audio clips
ExtWeb: string; //Internet documents
end;
</pre>
Note:<br>
<ul>
<li>For Plugins mode the different plugin detection scheme is used: matched plugin is determined
first by plugin detect-string, or, if plugin detect-string is empty, the first plugin that can
load given file is shown. Plugins mode can have higher or lower priority than internal viewers: see
PluginsHighPriority property.</li>
</ul>
</td>
</tr>
<tr>
<td>
<font color="DarkBlue">ModesDisabledForDetect</font> <br>
<font color="DarkBlue">ModeUndetected</font>
</td>
<td>Mode detection options (used when ModeDetect = True):
<ul>
<li> Set of modes that won't be auto-detected.
<li> Default mode that is set when nothing is detected.
</ul>
</td>
</tr>
<tr>
<td>
<font color="DarkBlue">FileName</font> <br>
<font color="DarkBlue">FileSize</font> <br>
<font color="DarkBlue">FileTime</font> (public, read-only)
</td>
<td>Properties of currently open file or folder:
<ul>
<li> Name (WideString)
<li> Size (Int64)
<li> Time (TFileTime record)
</ul>
Note:<br>
<ul>
<li> To convert FileTime value to a readable string, you may use,
for example, the FormatFileTime function from "Universal Viewer" demo.
</ul>
</td>
</tr>
<tr>
<td><font color="DarkBlue">IsFocused</font></td>
<td>Enables control focusing on file opening.<br>
Note:<br>
<ul>
<li>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).
</ul>
</td>
</tr>
<tr>
<td>
<font color="DarkBlue">BorderStyle</font> (inherited) <br>
<font color="DarkBlue">BorderStyleInner</font>
</td>
<td>Border styles:
<ul>
<li> Border style of entire TATViewer control.
<li> Border style of embedded controls (TATBinHex, TWebBrowser etc).
</ul>
Note:<br>
<ul>
<li> Set both BorderStyle and BorderStyleInner to bsNone to hide border completely.
</ul>
</td>
</tr>
<tr>
<td>
<font color="DarkBlue">PosPercent</font> <br>
<font color="DarkBlue">PosOffset</font> (public)</td>
</td>
<td>Current scroll position:
<ul>
<li> Relative position in percents (%). <br>
Works in text, Internet and Plugins modes.
<li> Absolute position (Int64, 0-based). <br>
Works in text and Internet modes.
</ul>
</td>
</tr>
<tr>
<td>
<font color="DarkBlue">SearchStarted</font> <br>
<font color="DarkBlue">SearchFinished</font> (public, read-only)
</td>
<td>Search state flags:
<ul>
<li> Flag that is set after FindFirst method was called once.
<li> Flag indicating that FindFirst / FindNext methods returned False on last call.
</ul>
</td>
</tr>
<tr>
<td>
<font color="DarkBlue">
MarginLeft <br>
MarginTop <br>
MarginRight <br>
MarginBottom
</font> (public)
</td>
<td>Printing margins.<br>
Currently in mm.
</td>
</tr>
</tbody>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -