Revision 1 of 2, by Alextp on 1-21-2022. The page as it is now.
ATBinHex
About
ATBinHex is a control that implements the quick file (stream) viewer. Only visible part of file (or stream) is loaded into viewer, so it's suitable to show files of unlimited size.
Original Delphi code is used for a long time inside "Universal Viewer" application.
Author: Alexey Torgashin
Limitations of Lazarus port
- Some features were disabled via ATBinHexOptions.inc file (searching of text, printing, RegEx highlighting of URLs).
- Removed method OpenFile, because it used Win32 API; use OpenStream instead.
View modes
There are 5 view modes available:
Text: file is shown in text form
<figure> <img src="atbinhex_ModeText.gif" title="atbinhex_ModeText.gif" /> <figcaption>atbinhex_ModeText.gif</figcaption> </figure>
Binary: file is shown in binary form (with fixed line length)
<figure> <img src="atbinhex_ModeBinary.gif" title="atbinhex_ModeBinary.gif" /> <figcaption>atbinhex_ModeBinary.gif</figcaption> </figure>
Hex: file is shown in hex dump
<figure> <img src="atbinhex_ModeHex.gif" title="atbinhex_ModeHex.gif" /> <figcaption>atbinhex_ModeHex.gif</figcaption> </figure>
Unicode: Unicode contents of file is shown
<figure> <img src="atbinhex_ModeUnicode.gif" title="atbinhex_ModeUnicode.gif" /> <figcaption>atbinhex_ModeUnicode.gif</figcaption> </figure>
Unicode/Hex: combined Hex and Unicode modes
<figure> <img src="atbinhex_ModeUHex.gif" title="atbinhex_ModeUHex.gif" /> <figcaption>atbinhex_ModeUHex.gif</figcaption> </figure>
Download
- Homepage of Lazarus port: https://github.com/Alexey-T/ATBinHex-Lazarus
- Homepage of Delphi original, with all functions including printing, searching, support for many codepages: https://github.com/Alexey-T/ATViewer
From the Free Pascal wiki, page "ATBinHex", as it stood on 2022-01-21 after a change by Alextp, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
