Recent

Author Topic: ATBinHex official port  (Read 6690 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
ATBinHex official port
« on: March 09, 2015, 05:11:31 pm »
ATBinHex port
https://github.com/Alexey-T/ATBinHex-Lazarus

Description here from Delphi: http://atviewer.sourceforge.net/atbinhex.htm
I tested on Win, Win/Qt, Linux/Gtk2 and redone seltext coloring (Invertrect). Also see notes (github)

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: ATBinHex official port
« Reply #1 on: March 09, 2015, 05:39:45 pm »
Thanks Alexey for sharing such a great component.  :)

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: ATBinHex official port
« Reply #2 on: March 10, 2015, 04:12:58 am »
Thank you.

I did the first port and planned to update to get in sync with recent versions, but never got time.

I did not find a package file. Do you have plans to add one?




AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATBinHex official port
« Reply #3 on: March 10, 2015, 05:49:52 am »
yeh, I add lpk latr.

Main work is not porting, main work you cannot do anyway:
- replace GetTextExtentPoint api with new api (from my new app) which calculates offset of all chars (usual chars- width 1.0, CJK chars- width 1.7)
- Also I replaced WM_vscroll/WM_hscroll with LM_vscroll/LM_hscroll to work with Qt.
- Also redone InvertRect (by painting with Pen.Mode:= pmXor).

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATBinHex official port
« Reply #4 on: March 10, 2015, 08:44:37 am »
Pls help with LPK. I made one, i don't know how to do, it doesnt work,
Ide shows "Error moving component" if I place on form.

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: ATBinHex official port
« Reply #5 on: March 12, 2015, 01:23:38 am »
I updated the package file using best practices at https://github.com/Alexey-T/ATBinHex-Lazarus/pull/1

The issue placing at the form is a different one, i will take a look soon

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATBinHex official port
« Reply #6 on: March 12, 2015, 02:06:47 am »
Good- tks, merged...

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: ATBinHex official port
« Reply #7 on: March 12, 2015, 02:27:16 am »

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATBinHex official port
« Reply #8 on: March 14, 2015, 01:46:33 am »
Fixed Icon. On pallette

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATBinHex official port
« Reply #9 on: May 25, 2017, 05:17:58 pm »
Update

Big addon: now returned back TextEncoding property+ menu of codepages in right-click menu.
it is done via LConvEncoding. Menu items copied from CudaText: same names, and order of items. Tested on simple non-EN files.

fiazhnd

  • New Member
  • *
  • Posts: 36
Re: ATBinHex official port
« Reply #10 on: June 09, 2017, 12:59:23 pm »
Face following error;

The Following failed to load

atbinhex_package
see project->Project Inspector

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATBinHex official port
« Reply #11 on: December 19, 2017, 06:03:39 am »
Big update

Quote
2017.12.18
+ add: use unicode middle-dot U+00B7 for special chars

2017.12.15
+ big rework. ATStreamSearch works now. ATBinHex methods FindFirst/FindNext work now. Only case-insensitive search don't work for non-ascii text. Hard todo.
+ add: buttons Find/FindNext in demo
+ add: keys Home/End to goto file begin/end, in fixed modes
+ add: hide v-scrollbar in fixed modes (hex/ binary/ u-hex)
- fix: OnScroll wasn't called in many cases
- fix: huge file, if v-scrollbar dragged to end, file must also scroll to end

 

TinyPortal © 2005-2018