beckhoff — 7.2.1.17 BackgroundColor

Event HMI 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() ' display alarms with red text color TcEventView1.AlarmTextColor = RGB(255, 0, 0) End Sub 7.2.1.17 BackgroundColor ITcEventView [ } 68] This property sets or returns the background color of the control. Property get HRESULT get_BackgroundColor([out, retval] OLE_COLOR* pVal); Parameters pVal [out, retval] pointer to OLE_COLOR variable that receives the background color.

Return Values S_OK Function was successfully called E_POINTER pVal was no valid pointer Property set HRESULT put_BackgroundColor([in] OLE_COLOR newVal); Parameters 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() ' display alarms with red text color TcEventView1.BackgroundColor = RGB(255, 0, 0) End Sub TcEventLogger 83 Version: 1.1 newVal [in] A variable that sets the background color .