Feature #1697
Display (Line, Column) : Add Selection length => Display (Line, Col, Sel)
Status: | Approved | Start date: | 04/28/2017 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | IƱaki Zabala | % Done: | 0% | |
Category: | IDE | Spent 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 over 7 years ago
- Status changed from Patch ready to Approved
Very good idea, thank you!