Movicon Help on Line - Rel. 11.7.1301
The Threshold Settings in Draws and Controls must be configured when the "Back Color Properties common to Drawis and Controls" , "Edge - Text Color Properties common to Draws and Controls", or "Filling Properties common to Draws and Controls" properties are enabled. In this case, you will need to assign colors to the values that can be obtained by the variable set in the animation properties. There are virtually an unlimited number of color thresholds that can be entered.
The assign color will be activated when the value of the variable obtains the same value set for the threshold. When the value of the variable exceeds the value set for the threshold, the color assigned to the next threshold will be activated and so on.
For instance, by taking into consideration the settings reported in the above image, we should get:
Variable Value |
Color |
0 |
Red |
1 |
Green |
10 |
Blue |
... |
... |
90 |
Cyan |
100 |
Yellow |
... |
... |
If the 'Analog Colors' option has been selected, the transition from one color threshold to another will be gradual whereby a series of intermediate colours managed by Movicon will be displayed at Runtime. |
By using the "Copy" and "Paste" commands described below, you wil be able to copy the defined color threshold list from one object and paste it in other different objects. This wil allow you to quickly transfer color thresholds from one object to another for all types of dynamic animations: "Background color", "dynamic Text", "Text & Edge Colors" and "Gradual Filling".
The buttons positioned on the right hand side of the dialog window allow you to edit the colour thresholds. Their functions are:
Add: adds a new Colour Threshold. A 'Edit Colour Threshold' window will open.
Edit: after having selected a threshold from the list, you will be able to then edit its settings. A ' Edit Colour Threshold' window will open.
Remove: after having selected a threshold from the list, it can be deleted.
Default: when pressing this button, the threshold list will be cancelled and replaced with the 7 default thresholds by Movicon.
Copy: allows you to copy the color threshold list to the Windows Clipboard. The color threshold data is copied to the Window clipboard in xml format.
Paste: allows you to paste the color threshold list, previously copied to the Windows Clipboard with the "copy" command, to the selected object.
You are required to enter at least two thresholds when editing them. However, you can delete all the color thresholds from the list. In this case Movicon will use the default threshold list, and the nest time the threshold edit window is opened all the default thresholds will show again. |
When you press the Add or Edit buttons in the window listing the inserted thresholds, a dialog window will open allowing you to configure the parameters of each one:
Value
This is used to enter the desired value which will then be compared with the value contained in the animation variable to determine when the threshold in question must be activated.
Variable
This is used to enter the name of the variable to be used instead of the place of the Value property. It can also be selected with the "..." browse button on the right. This will make the threshold's value because it allows the contents of the variable to be used and edited at Runtime.
Be careful not to confuse the Threshold Variable with the Animation Variable entered for the Colour Threshold management. The Threshold Variable is only needed to make the value of each single threshold dynamic. This means that if the same variable is inserted, in the Threshold Variable field and in the Variable field by mistake, the animation will stop working and the components will keep the same colour with the reference variable and the threshold value will remain unchanged. |
Mode
This allows you to select the animation's behaviour when reaching the threshold. The following actions, which will be executed when the value has been reached, can be selected:
Normal: when the threshold has been reached, the colour selected in the Color property described below will display.
Invisible: when the threshold has been reached, the colour will become invisible as if transparent.
Slow Blinking: when the threshold has been reached, the slow blinking will be activated with the colour defined in the Color and Blinking Color properties as described below. The blinking time is 2000 msecs. for default. This value can be customized using the appropriate "BlinkTypeSlow" registry key.
Average Blinking: when the threshold has been reached the normal blinking will be executed with the colour defined in the Color and Blinking Color properties as described below. The blinking time is 1000 msecs for default. These values can be customized using the appropriate "BlinkTypeMedium" registry key.
Fast Blinking: when the threshold has been reached, the fast blinking will be executed with the colour defined in the Color and Blinking Color properties as described below. The blinking time is 500 msecs. for default. This value can be customized using the appropriate "BlinkTypeFast registry key.
Custom Blinking: when the threshold has been reached, the blinker will be executed with the colour defined in the Color and Blinking Color properties as described below, using the value specified in the Blink Time described below, as the blinking frequency
Blink Time
The blink time is entered in this box and will be used when the Customized Blinking option has been selected in the Mode property. This time is expressed in milliseconds.
Text
The text string is entered in this edit box. The string will be displayed inside the component together with any animations that have been set when the preset threshold has been reached. This option allows you to create dynamic texts. This property is only available for the "Edge - Text Color Properties common to Draws and Controls" function.
Color
This setting is used to select the colour to be assigned to the Threshold.
For further information on selecting colours, please refer to the paragraph on "Color Selection".
Blink Colour
This is used to select the blink colour to be used together with the threshold's Color when the Customized Blink in the Mode property has been selected.
For further information on selecting colours, please refer to the paragraph on "Color Selection".