Ignore:
Timestamp:
Aug 16, 2012, 12:59:53 PM (12 years ago)
Author:
chronos
Message:
  • Modified: Classes using TCommPin class now inherits from TCommNode which inherits from TComponent. All TCommNodes are now registred as components in PinConnection group on component palette.
  • Modified: TCommPin now have reference to parent TCommNode.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • PinConnection/UCommMark.pas

    r410 r413  
    1212  { TCommMark }
    1313
    14   TCommMark = class
     14  TCommMark = class(TCommNode)
    1515  private
    1616    FActive: Boolean;
     
    2727    Mark: TListByte;
    2828    procedure Reset;
    29     constructor Create;
     29    constructor Create(AOwner: TComponent); override;
    3030    destructor Destroy; override;
    3131    property Active: Boolean read FActive write SetActive;
     
    8888end;
    8989
    90 constructor TCommMark.Create;
     90constructor TCommMark.Create(AOwner: TComponent);
    9191begin
     92  inherited;
    9293  PinRaw := TCommPin.Create;
    9394  PinRaw.OnReceive := RawDataReceive;
    9495  PinRaw.OnSetSatus := RawSetStatus;
     96  PinRaw.Node := Self;
    9597  PinFrame := TCommPin.Create;
    9698  PinFrame.OnReceive := FrameDataReceive;
    9799  PinFrame.OnSetSatus := FrameSetStatus;
     100  PinFrame.Node := Self;
    98101  Mark := TListByte.Create;
    99102  FMarkIndex := 0;
Note: See TracChangeset for help on using the changeset viewer.