Skip to content

Display the data offset in the Statusbar #233

@Jordem

Description

@Jordem

Hello,

I would like to ask for a feature to display the current position in the data.
I already downloaded and compiled Notepad2e for this, but I think it would be handy to have it integrated.

It just requires three small changes in UpdateStatusbar()

WCHAR tchPos[32];

...

wsprintf(tchPos, L"%i", iPos);
FormatNumberStr(tchPos);

...

  if (!bMarkLongLines)
    FormatString(tchDocPos, COUNTOF(tchDocPos), IDS_DOCPOS, tchLn, tchLines, tchCol, tchSel, tchPos);
  else
    FormatString(tchDocPos, COUNTOF(tchDocPos), IDS_DOCPOS2, tchLn, tchLines, tchCol, tchCols, tchSel, tchPos);

Define IDS_DOCPOS and IDS_DOCPOS2 like that:

    IDS_DOCPOS              "Ln %s : %s   Col %s   Sel %s   Pos %s"
    IDS_DOCPOS2             "Ln %s : %s   Col %s : %s   Sel %s   Pos %s"

Thank you for that great tool.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions