About PortController
Introduction
Purchasing PortController
Redistributing PortController
License Agreement
Support
Getting Started
How to Use PortController
Using PortController with Visual Basic
Using PortController with Visual C++
Using PortController with Delphi
How to Use Events
Handling Events in Visual Basic
Handling Events in Visual C++
Handling Events in Delphi
PortController Sample Projects
Reading and Writing Binary Data
Handling PortController Errors
Reference
Properties
BaudRate Property
Break Property
BytesUsedRQ Property
BytesUsedTQ Property
Cd Property
Cts Property
DataBits Property
Dsr Property
Dtr Property
DtrDsr Property
EnableReadOnEventChar Property
EventChar Property
Parity Property
PortHandle Property
PortName Property
Ring Property
Rts Property
RtsCts Property
StopBits Property
XonXoff Property
Methods
ClearRQ Method
ClearTQ Method
Close Method
GetErrorStatus Method
Open Method
Read Method
ReadBinary Method
Write Method
WriteBinary Method
SendXoff Method
SendXon Method
Events
BreakSignal Event
CdToggle Event
CtsToggle Event
DataReceived Event
DsrToggle Event
Error Event
EvtCharReceived Event
Ring Event
TQEmpty Event

CtsToggle Event

Triggered when the state of the clear-to-send line changes.

Syntax

Visual Basic

Private Sub PortControllerObject_CtsToggle(ByVal NewVal As Integer)

Visual C++

void CMyWindowName::OnCtsTogglePortcontroller(short NewVal)

Delphi

procedure PortControllerObjectCtsToggle(ASender: TObject; NewVal: Smallint);

Arguments

CtsState: a short integer that holds the new value of the Clear-to-Send line. CtsState is 0 when the Clear-to-Send signal is OFF and non-zero when the Clear-to-Send signal is ON

Remarks

  • This event will not fire if RTS/CTS handshaking is enabled (the RtsCts property is true)

  • See Using PortController Events for information and instructions regarding PortController event handling.

Errors

None

See Also

Cts, Using PortController Events, Handling Events in Visual C++, Handling Events in Visual Basic, Handling Events in Delphi