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/UCommDelay.pas

    r407 r413  
    3333  { TCommDelay }
    3434
    35   TCommDelay = class
     35  TCommDelay = class(TCommNode)
    3636  private
    3737    FActive: Boolean;
     
    4949    Pin1: TCommPin;
    5050    Pin2: TCommPin;
    51     constructor Create;
     51    constructor Create(AOwner: TComponent); override;
    5252    destructor Destroy; override;
    5353    property Delay: TDateTime read FDelay write FDelay;
     
    169169end;
    170170
    171 constructor TCommDelay.Create;
     171constructor TCommDelay.Create(AOwner: TComponent);
    172172begin
     173  inherited;
    173174  Lock1 := TCriticalSection.Create;
    174175  Lock2 := TCriticalSection.Create;
     
    177178  Pin1 := TCommPin.Create;
    178179  Pin1.OnReceive := ReceiveData1;
     180  Pin1.Node := Self;
    179181  Pin2 := TCommPin.Create;
    180182  Pin2.OnReceive := ReceiveData2;
     183  Pin2.Node := Self;
    181184end;
    182185
Note: See TracChangeset for help on using the changeset viewer.