procedure TCnEditControlWrapper.DoEditorChange(Editor: TEditorObject;
ChangeType: TEditorChangeTypes);
var
I: Integer;
begin
//我跳过这些方法就不报错
if ChangeType * [ctView, ctWindow] = [] then
begin
exit;
end;Author:
hq200306 Time: 2022-3-19 18:56
//困扰我好久的bug,终于改好了
procedure TCnEditControlWrapper.DoEditorChange(Editor: TEditorObject;
ChangeType: TEditorChangeTypes);
var
I: Integer;
begin
if ChangeType * [ctView, ctWindow{$IFDEF BDS}, ctLineDigit{$ENDIF}] <> [] then
begin
//hyh
if Assigned((Editor)) then
begin
Editor.FGutterChanged := True; // 行位数发生变化时,会触发 Gutter 宽度变化
end;
end;Author:
hq200306 Time: 2022-3-20 10:21