[Wish] Lister: double selection in hex view
Moderators: Hacker, petermad, Stefan2, white
[Wish] Lister: double selection in hex view
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)?
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)?
- fenix_productions
- Power Member
- Posts: 1979
- Joined: 2005-08-07, 13:23 UTC
- Location: Poland
- Contact:
++

• I support as well !

Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
Lister: HEX mode enhancement
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!
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!
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.
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.
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.
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.
0.618033988
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.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.
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;
F3 - Lister viewing in HEX suggestion
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
Also selecting hex values would do the same - currently it is not possible to select hex values.
Saso
#224551