mirror of https://gitlab.com/basile.b/dexed.git
added selection length display
This commit is contained in:
parent
dacf972250
commit
e0c3d9495f
|
@ -39,7 +39,7 @@ inherited CEEditorWidget: TCEEditorWidget
|
||||||
BorderSpacing.Around = 2
|
BorderSpacing.Around = 2
|
||||||
Panels = <
|
Panels = <
|
||||||
item
|
item
|
||||||
Width = 100
|
Width = 110
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Width = 150
|
Width = 150
|
||||||
|
|
|
@ -128,6 +128,7 @@ begin
|
||||||
end;
|
end;
|
||||||
{$ENDREGION}
|
{$ENDREGION}
|
||||||
|
|
||||||
|
{$REGION PageControl/Editor things ---------------------------------------------}
|
||||||
function TCEEditorWidget.getEditorCount: NativeInt;
|
function TCEEditorWidget.getEditorCount: NativeInt;
|
||||||
begin
|
begin
|
||||||
result := pageControl.PageCount;
|
result := pageControl.PageCount;
|
||||||
|
@ -333,7 +334,8 @@ const
|
||||||
begin
|
begin
|
||||||
if fDoc = nil then exit;
|
if fDoc = nil then exit;
|
||||||
//
|
//
|
||||||
editorStatus.Panels[0].Text := format('%d : %d', [fDoc.CaretY, fDoc.CaretX]);
|
editorStatus.Panels[0].Text := format('%d : %d | %d', [fDoc.CaretY, fDoc.CaretX,
|
||||||
|
fDoc.SelEnd - fDoc.SelStart]);
|
||||||
editorStatus.Panels[1].Text := modstr[fDoc.modified];
|
editorStatus.Panels[1].Text := modstr[fDoc.modified];
|
||||||
editorStatus.Panels[2].Text := fDoc.fileName;
|
editorStatus.Panels[2].Text := fDoc.fileName;
|
||||||
end;
|
end;
|
||||||
|
@ -372,5 +374,6 @@ begin
|
||||||
tokLst.Clear;
|
tokLst.Clear;
|
||||||
errLst.Clear;
|
errLst.Clear;
|
||||||
end;
|
end;
|
||||||
|
{$ENDREGION}
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
Loading…
Reference in New Issue