type
TAnschluss = (asTCP_IP, asLPT1, asLPT2, asLPT3, asCOM1, asCOM2, asCOM3);
TCOMUnterklasse =
class(TPersistent)
public
FBaudRate: CPort.TBaudRate;
FDataBits: CPort.TDataBits;
FStopBits: CPort.TStopBits;
FParity: CPort.TComParity;
published
property BaudRate:CPort.TBaudRate
read FBaudRate
write FBaudRate;
property DataBits: CPort.TDataBits
read FDataBits
write FDataBits;
property StopBits: CPort.TStopBits
read FStopBits
write FStopBits;
property Parity: CPort.TCOMParity
read FParity
write FParity;
end;
type
Tptw_AveryEtikettendruck =
class(TComponent)
IndyClient: TIdTCPClient;
COM: TComPort;
private
{ Private-Deklarationen }
FUnterklasse: TCOMUnterklasse;
...
published
property COMEinstellungen: TCOMUnterklasse
read FUnterklasse
write FUnterklasse;