Mode

ITcEventView

This property sets or returns the display mode of the TcEventViewer. The displayed modes are defined by the enum TCEVENTVIEW_DISPLAYMODE.

Property get

HRESULT get_Mode([out, retval] long* pVal);

Parameters

pVal

[out, retval] pointer to variable that receives the display mode of the type TCEVENTVIEW_DISPLAYMODE

Return Values

S_OK

Function was successfully called

E_POINTER

pVal was no valid pointer

 

Property let

HRESULT put_Mode[in] long newVal);

Parameters

newVal

[in] A variable that sets the display mode of the type TCEVENTVIEW_DISPLAYMODE

Return Values

S_OK

Function was successfully called

 

Visual Basic sample code

Option Explicit

' add the Beckhoff TcEvent View Library to the components
' place a TcEventView on the form, and assign the name TcEventView1

Private Sub Form_Load()
  TcEventView1.Mode = TCEVENTVIEW_MODE_TRACE
End Sub