Feature #1697

Display (Line, Column) : Add Selection length => Display (Line, Col, Sel)

Added by Abdelghani Omari almost 7 years ago. Updated almost 7 years ago.

Status:ApprovedStart date:04/28/2017
Priority:NormalDue date:
Assignee:IƱaki Zabala% Done:

0%

Category:IDESpent time:-
Target version:-

Description

Hi,
I have to use another text editor each time i want to calculate a text length
here the patched functions :

void Ide::DoDisplay()
{
    int l, h;      // added
    Point p = editor.GetColumnLine(editor.GetCursor());
    editor.GetSelection(l, h);  // added
    display.SetLabel(Format("Ln %d, Col %d, Sel %d", p.y + 1, p.x + 1, h-l));   // modified

    ManageDisplayVisibility();
}

and, we need to increase the display label width :

void Ide::SetupBars()
{
    ClearFrames();
    int r = HorzLayoutZoom(120); // modified line : 100 => 120
    int l = HorzLayoutZoom(350);
...

History

#1 Updated by Miroslav Fidler almost 7 years ago

  • Status changed from Patch ready to Approved

Very good idea, thank you!

Also available in: Atom PDF