Ignore:
Timestamp:
Dec 8, 2023, 10:49:12 AM (5 months ago)
Author:
chronos
Message:
  • Modified: Class type checking enabled back.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/DpiControls/Dpi.Controls.pas

    r476 r482  
    437437function TWinControl.GetBorderStyle: TBorderStyle;
    438438begin
     439  {$objectChecks-}
    439440  Result := TWinControlEx(GetNativeWinControl).BorderStyle;
     441  {$objectChecks+}
    440442end;
    441443
     
    472474procedure TWinControl.SetBorderStyle(AValue: TBorderStyle);
    473475begin
     476  {$objectChecks-}
    474477  TWinControlEx(GetNativeWinControl).BorderStyle := AValue;
     478  {$objectChecks+}
    475479end;
    476480
     
    595599  GetNativeControl.OnResize := NativeFormResize;
    596600  GetNativeControl.OnChangeBounds := NativeChangeBounds;
     601
     602  {$objectChecks-}
    597603  TControlEx(GetNativeControl).OnMouseDown := MouseDownHandler;
    598604  TControlEx(GetNativeControl).OnMouseUp := MouseUpHandler;
     
    601607  TControlEx(GetNativeControl).OnMouseLeave := MouseLeaveHandler;
    602608  TControlEx(GetNativeControl).OnMouseWheel := MouseWheelHandler;
     609  {$objectChecks+}
    603610end;
    604611
     
    894901function TControl.GetOnDblClick: TNotifyEvent;
    895902begin
     903  {$objectChecks-}
    896904  Result := TControlEx(GetNativeControl).OnDblClick;
     905  {$objectChecks+}
    897906end;
    898907
    899908function TControl.GetParentColor: Boolean;
    900909begin
     910  {$objectChecks-}
    901911  Result := TControlEx(GetNativeControl).ParentColor;
     912  {$objectChecks+}
    902913end;
    903914
    904915function TControl.GetParentFont: Boolean;
    905916begin
     917  {$objectChecks-}
    906918  Result := TControlEx(GetNativeControl).ParentFont;
     919  {$objectChecks+}
    907920end;
    908921
     
    9901003procedure TControl.SetOnDblClick(AValue: TNotifyEvent);
    9911004begin
     1005  {$objectChecks-}
    9921006  TControlEx(GetNativeControl).OnDblClick := AValue;
     1007  {$objectChecks+}
    9931008end;
    9941009
    9951010procedure TControl.SetParentColor(AValue: Boolean);
    9961011begin
     1012  {$objectChecks-}
    9971013  TControlEx(GetNativeControl).ParentColor := AValue;
     1014  {$objectChecks+}
    9981015end;
    9991016
    10001017procedure TControl.SetParentFont(AValue: Boolean);
    10011018begin
     1019  {$objectChecks-}
    10021020  TControlEx(GetNativeControl).ParentFont := AValue;
     1021  {$objectChecks+}
    10031022end;
    10041023
     
    12191238begin
    12201239  inherited;
     1240  {$objectChecks-}
    12211241  TGraphicControlEx(GetNativeGraphicControl).OnPaint := PaintHandler;
     1242  {$objectChecks+}
    12221243end;
    12231244
Note: See TracChangeset for help on using the changeset viewer.