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

    r411 r413  
    2828  { TCommTCPClient }
    2929
    30   TCommTCPClient = class
     30  TCommTCPClient = class(TCommNode)
    3131  private
    3232    FActive: Boolean;
     
    4141    Port: Word;
    4242    property Active: Boolean read FActive write SetActive;
    43     constructor Create;
     43    constructor Create(AOwner: TComponent); override;
    4444    destructor Destroy; override;
    4545  end;
     
    9393end;
    9494
    95 constructor TCommTCPClient.Create;
     95constructor TCommTCPClient.Create(AOwner: TComponent);
    9696begin
    97   inherited Create;
     97  inherited;
    9898  Socket := TTCPBlockSocket.Create;
    9999  Pin := TCommPin.Create;
    100100  Pin.OnReceive := ReceiveData;
     101  Pin.Node := Self;
    101102end;
    102103
Note: See TracChangeset for help on using the changeset viewer.