界面库

修正问题
This commit is contained in:
JianjunLiu 2022-06-10 00:51:04 +08:00
parent 220a667fbe
commit c8d20b4daf
5 changed files with 9 additions and 9 deletions

View File

@ -1424,7 +1424,7 @@ type tcontrol = class(tcomponent)
try try
Dispatch(self(true),TheMessage); Dispatch(self(true),TheMessage);
finally finally
excludestate(FControlFlags,cfProcessingWMPaint); excludestate(FControlFlags,cfProcessingWMPaint);
end; end;
end else end else
begin begin

View File

@ -1263,7 +1263,7 @@ type TWinControl = class(tcontrol)
finally finally
_wapi.ReleaseDC(hd,dc); _wapi.ReleaseDC(hd,dc);
e.wparam := 0; e.wparam := 0;
e.skip := true; e.skip := true;
end end
{$endif} {$endif}
end end
@ -1374,13 +1374,13 @@ type TWinControl = class(tcontrol)
_wapi.SetViewportOrgEx(TheMessage.wparam,c[0],c[1],nil); //恢复基准点 _wapi.SetViewportOrgEx(TheMessage.wparam,c[0],c[1],nil); //恢复基准点
finally finally
_wapi.SelectClipRgn(TheMessage.wparam,bkrg); //恢复区域 _wapi.SelectClipRgn(TheMessage.wparam,bkrg); //恢复区域
_wapi.DeleteObject(rgb); //销毁区域 _wapi.DeleteObject(rgb); //销毁区域
end; end;
end end
end end
finally finally
_wapi.DeleteObject(rga); _wapi.DeleteObject(rga);
_wapi.DeleteObject(rgc); _wapi.DeleteObject(rgc);
end; end;
end end
procedure PaintWindow(DC:HDC);virtual; procedure PaintWindow(DC:HDC);virtual;

View File

@ -1482,7 +1482,7 @@ type TCustomMemo = class(TCustomScrollControl,TCustomMemoCmd)
end end
end end
finally finally
DecPaintLock(); DecPaintLock();
end; end;
end end
function MoveCaretAndSelection(p1,p2,sel); function MoveCaretAndSelection(p1,p2,sel);
@ -1918,7 +1918,7 @@ type TCustomMemo = class(TCustomScrollControl,TCustomMemoCmd)
TopLine := fCaretY; TopLine := fCaretY;
end end
finally finally
DecPaintLock(); DecPaintLock();
end; end;
end end
function GetCaretXY(); function GetCaretXY();
@ -1953,7 +1953,7 @@ type TCustomMemo = class(TCustomScrollControl,TCustomMemoCmd)
end end
EnsureCursorPosVisible(); EnsureCursorPosVisible();
finally finally
DecPaintLock(); DecPaintLock();
end; end;
if docc then DoCaretPosChanged(); if docc then DoCaretPosChanged();
end end

View File

@ -403,7 +403,7 @@ type TBasicActionLink=class(TSLUIBASE)
try try
r := FAction.Execute(); r := FAction.Execute();
finally finally
FAction.ActionComponent := nil; FAction.ActionComponent := nil;
end; end;
return r; return r;
end end

View File

@ -4387,7 +4387,7 @@ type TCustomSpinEdit = class(TCustomControl)
end end
end; end;
end end
type TSpinCEdit=class(tedit) type TSpinCEdit=class(tcustomedit)
function create(AOwner);override; function create(AOwner);override;
begin begin
inherited; inherited;