An example of reflect properties
With this type of property, all other component properties within the WB can be controlled.If, in the previous example, the user is to be allowed to control the colour of the DataDisplay and the DataSet, a “reflect” property can be published using any chosen name (for example: “colour”). This is connected directly to the “foreground” property of the DataSet and, simultaneously, to the “foreground” property of the DataDisplay.To achieve this, create a property following the example above, selecting “reflect” in the customization dialogue. A list of components contained within the WB will appear and the property can be associated to one or more properties of the components listed.
Upon setting the “colour” property when using the WB, the user will also simultaneously set the same value for all the properties listed (in our example: the “foreground” of the DataDisplay and the DataSet).When a reflect property is associated to more than one property within the WB (for example: a “colour” property that is simultaneously associated to the foreground of a DataDisplay and to the background of a DataSet), one of the related properties can be chosen to be used as a default value to be shown to the user when using the WB. This can be selected by clicking on the “default” column in the grid that lists the properties connected.