forked from liujianjun/tslediter
设计器
优化
This commit is contained in:
@@ -188,13 +188,6 @@ type TFTSLScriptcustomMemo=class(TSYNmemoNorm)
|
|||||||
end
|
end
|
||||||
function DoTextChanged(p);override;
|
function DoTextChanged(p);override;
|
||||||
begin
|
begin
|
||||||
{n := Lines.Length();
|
|
||||||
ccnt := GutterCharCnt;
|
|
||||||
nccnt := max(integer(n~10)+2,3);
|
|
||||||
if ccnt <> nccnt then
|
|
||||||
begin
|
|
||||||
GutterCharCnt := nccnt;
|
|
||||||
end}
|
|
||||||
inherited;
|
inherited;
|
||||||
SetChangeFlag(true);
|
SetChangeFlag(true);
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -3433,6 +3433,7 @@ type TtextEditor = class(tpanel)
|
|||||||
wssysmenu := true;
|
wssysmenu := true;
|
||||||
caption := "text Editor Dialog";
|
caption := "text Editor Dialog";
|
||||||
memo := new tmemo(self);
|
memo := new tmemo(self);
|
||||||
|
memo.autogutterwidth := true;
|
||||||
memo.OnKeyPress := thisfunction(MemoKeyPress);
|
memo.OnKeyPress := thisfunction(MemoKeyPress);
|
||||||
memo.parent :=self;
|
memo.parent :=self;
|
||||||
btn1 := new tbtn(self);
|
btn1 := new tbtn(self);
|
||||||
|
|||||||
@@ -1222,8 +1222,7 @@ type TCustomMemo = class(TCustomScrollControl,TCustomMemoCmd) //
|
|||||||
end
|
end
|
||||||
function DoTextChanged(p);virtual;//文本改变
|
function DoTextChanged(p);virtual;//文本改变
|
||||||
begin
|
begin
|
||||||
//改变
|
//改变
|
||||||
autosetgtwidth();
|
|
||||||
end
|
end
|
||||||
function DoCaretPosChanged();virtual;//caret位置改变
|
function DoCaretPosChanged();virtual;//caret位置改变
|
||||||
begin
|
begin
|
||||||
@@ -1687,6 +1686,7 @@ type TCustomMemo = class(TCustomScrollControl,TCustomMemoCmd) //
|
|||||||
begin
|
begin
|
||||||
fRedoList.Clear();
|
fRedoList.Clear();
|
||||||
end
|
end
|
||||||
|
autosetgtwidth();
|
||||||
return DoTextChanged(p);
|
return DoTextChanged(p);
|
||||||
end
|
end
|
||||||
function setcurrentLineColor(c);
|
function setcurrentLineColor(c);
|
||||||
|
|||||||
Reference in New Issue
Block a user