Browse Source

Solved Compiler Error on bcmaterialspinedit Cannot access a private field of an object here;

Massimo Magnano 10 tháng trước cách đây
mục cha
commit
17f0fa2173
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      bcmaterialedit.pas

+ 2 - 1
bcmaterialedit.pas

@@ -16,7 +16,6 @@ type
   private
   private
     FAccentColor: TColor;
     FAccentColor: TColor;
     FDisabledColor: TColor;
     FDisabledColor: TColor;
-    FEdit: T;
     FLabel: TBoundLabel;
     FLabel: TBoundLabel;
     FFocused: boolean;
     FFocused: boolean;
     function IsNeededAdjustSize: boolean;
     function IsNeededAdjustSize: boolean;
@@ -57,6 +56,8 @@ type
     procedure SetOnEditMouseWheelUp(AValue: TMouseWheelUpDownEvent);
     procedure SetOnEditMouseWheelUp(AValue: TMouseWheelUpDownEvent);
     procedure SetOnEditUTF8KeyPress(AValue: TUTF8KeyPressEvent);
     procedure SetOnEditUTF8KeyPress(AValue: TUTF8KeyPressEvent);
   protected
   protected
+    FEdit: T;
+
     function GetEditAlignment: TAlignment;
     function GetEditAlignment: TAlignment;
     function GetEditAutoSize: Boolean;
     function GetEditAutoSize: Boolean;
     function GetEditAutoSelect: Boolean;
     function GetEditAutoSelect: Boolean;