beckhoff — 7.2.1.6 DisableMenuItems

Event HMI [out, retval] pointer to a long variable that receives the actual selected language id Return Values S_OK Function was successfully called E_POINTER pVal was no valid pointer Property let HRESULT put_LangId([in] long newVal); Parameters newVal [in] The language Id of the requested language. The requested language should be tagged by *LCIDs. The next table shows a sample for some language ids.

In the configuration of the event formatter the language are tagged by the same language id 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() ' prints the old language id Debug.Print TcEventView1.LangId ' sets the language id to English TcEventView1.LangId = 1033 End Sub Remarks If a new language is assigned all displayed events are retrieved again in the new selected languages 7.2.1.6 DisableMenuItems ITcEventView [ } 68] This property returns or sets the disable state of the context menu.

Property get HRESULT get_DisableMenuItems([out, retval] long *pVal); TcEventLogger 73 Version: 1.1 LCID Description 1031 German 1033 US English 1034 Spanish - Spain 1036 French