Page 1 of 3

[Wish] Lister: double selection in hex view

Posted: 2007-02-07, 09:08 UTC
by compie
When using lister to view a file in hex mode, you can make a selection on the right (where the normal text is shown). It would be nice if the corresponding section on the left (the hex text) would also be marked.
I have used some HEX editors that also implemented this and it works fine.

Christian: if you implement this, could you also make it possible to select on the left (in the hex text)?

Posted: 2007-02-07, 21:03 UTC
by fenix_productions
+ for standalone selection for left / right side

Posted: 2007-02-12, 08:42 UTC
by compie
I hope this can be but on the big wish list for TC 7.? ....

Posted: 2007-02-12, 09:57 UTC
by D1P
Support++

Posted: 2007-02-14, 00:26 UTC
by astrotzky
Support++

++

Posted: 2007-02-14, 01:17 UTC
by Clo
:) Hello !

• I support as well !

:mrgreen: KR
Claude
Clo

Posted: 2007-02-14, 01:31 UTC
by byblo
In waiting for it, you can use the alternative viewer : universal viewer :mrgreen:

Lister: HEX mode enhancement

Posted: 2009-11-03, 07:29 UTC
by Dr.Nemo
Hi,

Please add hex code selection in the left pane when cursor is visible in right pane (ascii codes).

This is really useful when you want to know the hex code of ascii symbol under cursor.

Thanks!

Posted: 2009-11-03, 10:21 UTC
by MVV
Support.
Also support context menu item like 'Copy as HEX' for copying HEX values (or to copy HEX values on context menu item in HEX column and text in text column).
Also would be great to have possibility to select text in HEX column also (currently lister allows to select entire lines only.

And many users asked for jumping to offset, I think it may be done via jump to % dialog, e.g. if user enters number with prefix $. This is not so hard to realize.

Posted: 2009-11-11, 14:16 UTC
by aRIEL242
Support

Posted: 2009-11-12, 01:46 UTC
by Sam_Zen
I want to support this, although I'm not saying, that it's not so hard to realize..
It would implicate, that there will be two cursors at the same time in one file, to indicate the same position.
Showing a selection of a string of characters in the left pane simultaneously is even more complicated.

Posted: 2009-11-12, 05:25 UTC
by MVV
Sam_Zen wrote:I want to support this, although I'm not saying, that it's not so hard to realize..
It would implicate, that there will be two cursors at the same time in one file, to indicate the same position.
Showing a selection of a string of characters in the left pane simultaneously is even more complicated.
I don't know how Lister is made, but it have no child classes, so it seems that it draws selection manually - in this case it is quite easy - draw selection in both hex and text blocks in one procedure.

BTW, standard Windows classes have style ES_NOHIDESEL allowing to see selection even if windows have no focus. In Delphi it is pretty easy to set equal selection for pair of Edit windows (or Memo, they are equal, in Windows there is only one class EDIT with optional style ES_MULTILINE):

Code: Select all

object Form1: TForm1
  ...
  object Edit1: TMemo
    ...
    HideSelection = False
    ...
  end
  object Edit1: TMemo
    ...
    HideSelection = False
    ...
  end
  ...
end


procedure TForm1.DupSelection(ToRight: Boolean);
begin
  if (ToRight) then begin Edit2.SelStart:=Edit1.SelStart; Edit2.SelLength:=Edit1.SelLength; end
  else begin Edit1.SelStart:=Edit2.SelStart; Edit1.SelLength:=Edit2.SelLength; end;
end;

procedure TForm1.Edit1MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
begin if (ssLeft in Shift) then DupSelection(True); end;

procedure TForm1.Edit1Click(Sender: TObject);
begin DupSelection(True); end;

procedure TForm1.Edit1DblClick(Sender: TObject);
begin DupSelection(True); end;

procedure TForm1.Edit1KeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
begin DupSelection(True); end;

Posted: 2009-11-12, 23:57 UTC
by Sam_Zen
I guess you convinced me.
Just two cursors would be very nice already.

F3 - Lister viewing in HEX suggestion

Posted: 2010-07-30, 08:16 UTC
by miskox
If I view a file in hex (F3 - Lister, Options/Hex) and I select some characters on the right they are selected - colors are inverted. I would like to see hex values selected too.

Also selecting hex values would do the same - currently it is not possible to select hex values.

Saso

Posted: 2010-07-30, 12:39 UTC
by aRIEL242
Support++