dOPC Client Toolkit Help file
dOPCGUI.RegisterGUIControl Function
C++
RegisterGUIControl(
    TdOPCControlClass GUIClass, 
    AnsiString PropName, 
    TGUIClassSetValue ValueProc
);
C#
RegisterGUIControl(
    TdOPCControlClass GUIClass, 
    String PropName, 
    TGUIClassSetValue ValueProc
);
Visual Basic
Sub RegisterGUIControl(
    GUIClass As TdOPCControlClass, 
    PropName As String, 
    ValueProc As TGUIClassSetValue
)

dOPCGUI

RegisterGUIControl registers default properties and default work procedures for a TControl class.

TdOPCGUI sets the property of the Control directly, but if you register a property with a new work procedure the default property and the default work procedure are changed (see also example below). 

This change will apply to all objects of the registered class.

procedure SetMemo(Control: tdOPCControl; var OPCValue: OleVariant);
begin
  TMemo(Control).Lines.Add(OPCValue);
end;

initialization
  RegisterGUIControl(TMemo,'lines',SetMemo); //Actually it's not possible to set property lines
end.
What do you think about this topic? Send feedback!
Copyright © 2001-2014 Kassl GmbH (http://www.kassl.de). All rights reserved.