TdOPCGUI is a component to show values (items) of an OPC server on a graphical user interface (GUI).
Thus it provides the ability to change properties (e.g. "Text") of a visual control (e.g. "TEdit") with values from an OPC server. You can make allocations at design or at runtime.
1. Double-click the TdOPCGUI component, which lets you get a list of all controls on your form.
3. Select the property of the visual control you want to use (e.g. Text, Value, Width, Left, ...). If you want to set the property as default for the class of the selected control, check default.
4. Select the TdOPCItem (values of this item will set the selected property) by double-clicking it. Now you have allocated the control to the item.
5. For further allocations please repeat steps 1 to 4.
At runtime use the AddItem method to connect controls with TOPCItem objects.
If you want to show the value of an TOPCItem (e.g. "Random.String") in a TEdit control (e.g. "Edit1"), simply call the following method:
After calling this method, all changes to the value of the "Random.String" item will be shown in "Edit1".