Ignore:
Timestamp:
Aug 17, 2012, 9:53:11 AM (12 years ago)
Author:
chronos
Message:
  • Fixed: Use parent TCommNode Active property instead custom in PinConnection package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • PinConnection/UCommMark.pas

    r413 r414  
    1414  TCommMark = class(TCommNode)
    1515  private
    16     FActive: Boolean;
    1716    FMarkIndex: Integer;
    1817    FFrameData: TListByte;
     
    2120    procedure FrameDataReceive(Sender: TCommPin; Stream: TListByte);
    2221    procedure FrameSetStatus(Sender: TCommPin; Status: Integer);
    23     procedure SetActive(AValue: Boolean);
     22  protected
     23    procedure SetActive(const AValue: Boolean); override;
    2424  public
    2525    PinRaw: TCommPin;
     
    2929    constructor Create(AOwner: TComponent); override;
    3030    destructor Destroy; override;
    31     property Active: Boolean read FActive write SetActive;
    3231  end;
    3332
     
    7574end;
    7675
    77 procedure TCommMark.SetActive(AValue: Boolean);
     76procedure TCommMark.SetActive(const AValue: Boolean);
    7877begin
    7978  if FActive = AValue then Exit;
    8079  FActive := AValue;
    8180  if FActive then Reset;
     81  inherited;
    8282end;
    8383
Note: See TracChangeset for help on using the changeset viewer.