Skip to main content

WEBfactory 2010

WFNumericUpDown1

The WFNumericUpDown1 control is able to display and edit the value of a signal at run time, allowing the user to increase or decrease the value by one unit. The WFNumericUpDown1 control also allows the user to display a label and unit for the signal's value, while providing comprehensive security options. Last but not least, the WFNumericUpDown1 control provides a complex visual state editor, allowing the control to change its appearance based on the trigger value settings.

Capture4157.jpg

WFNumericUpDown1

Features
Label, Unit, Format and Precision
Capture4151.jpg
Capture4156.jpg

The control can display the label and unit using symbolic texts and customizable unit and label areas. The precision and format (Standard Numeric Format Strings) of the value set at design time are also reflected by the control at run time.

Small and Large Increments
Capture4151.jpg
Capture4152.jpg

The control can increase or decrease the value of the signal using small increments, triggered by the up/down arrows or the mouse wheel or large increments, triggered by the Page Up or Page Down keyboard buttons. Both increments can be set up at design time.

Visual States
Capture4153.jpg
Capture4154.jpg
Capture4155.jpg

The control has the ability to change its visual states depending on a signal's value.

Advanced Security

The control offers advanced security options like enabling, disabling, showing or hiding the control based on a signal's value, authorization based behavior and secured value writing.

Pop-up options

The control can also trigger pop-up windows in either modal or modeless way.

Design-time Properties

The control's design time properties are available in the Properties panel:

  1. ButtonHeight- the height of the write confirmation buttons.

  2. ButtonWidth- the width of the write confirmation buttons.

  3. CornerRadius - the rounding of the control's input corners.

  4. Format - allows the user to specify a format for the value written and displayed by the control. Click here to read more about the Standard Numeric Format Strings.

  5. InputBorderThickness- allows the user to specify a thickness value for the control's input field border.

  6. InputPadding - the padding of the control's input field.

  7. LabelFontSize - the font size of the Label text.

  8. LabelPadding - the padding of the control's label.

  9. LabelPosition - the position of the label. Can be Top, Left or Bottom.

  10. LabelSymbolicText - the symbolic text for the label.

  11. LabelTextAlignment - the text alignment of the label text. Can be Left, Right, Center or Justified.

  12. LabelVisibility - allows the user to hide or show the label. Can be Visible or Collapsed.

  13. LabelWidth - the width of the label element.

  14. LargeChange - sets the increment applied when using the Page Up and Page Down keyboard keys.

  15. Maximum - the maximum value to be displayed/set by the control.

  16. Minimum - the minimum value to be displayed/set by the control.

  17. PopupModality - allows the user to select the display method for the popup. The options are Modal or Modeless.

  18. PopupParameters - the user can define a parameter containing a name and a value. This parameter can be passed to the popup page opened by the button.

  19. PopupSource - select the popup page to be opened when the button is pressed at run time.

  20. PopupTitle - sets the pop-up window title.

  21. Precision - the number of decimals of the number.

  22. ShowPopup - enables the popup page.

  23. SmallChange - sets the increment applied when using the up/down arrows or the mouse wheel.

  24. UnitFontSize - the font size of the unit text.

  25. UnitPadding - the padding of the control's unit text.

  26. UnitPosition - the position of the unit. Can be Top, Right or Bottom.

  27. UnitSymbolicText - the symbolic text for the unit.

  28. UnitTextAlignment - the text alignment of the unit text. Can be Left, Right, Center or Justified.

  29. UnitVisibility - allows the user to hide or show the unit. Can be Visible or Collapsed.

  30. UnitWidth - the width of the Unit element.

  31. EnableMask - the binary mask used for enabling or disabling the control. The control uses the bitwise AND operation between the binary value of the signal set at the EnableSignalName property and the binary value of the mask. This bitwise AND operation must equate to the binary value of the mask in order to be true (e.g. Signal & Mask = Mask). The control is disabled when the bitwise operation is true and enabled when the bitwise operation is false.

  32. EnableSignalName - the signal that will control the enabled or disabled state of the control. The binary value of the selected signal is used together with the EnableMask binary value to toggle between the control's enabled or disabled states.

  33. SecurityAuthorizationName - allows the user to select an authorization group. The members of the selected authorization group will have access to the control.

  34. SecurityDenyAccessBehaviour - allows the user to select a behavior that will be active when a user that doesn't belong to the above selected authorization group logs in. The action can either be disabled or hidden.

  35. VisibilityMask - the binary mask used for displaying or hiding the control. The control uses the bitwise AND operation between the binary value of the signal set at the VisibilitySignalName property and the binary value of the mask. This bitwise AND operation must equate to the binary value of the mask in order to be true (e.g. Signal & Mask = Mask). The control is hidden when the bitwise operation is true and visible when the bitwise operation is false.

  36. VisibilitySignalName - the signal that will control the visibility of the control. The binary value of the selected signal is used together with the VisibilityMask binary value to toggle between the control's visible or hidden states.

  37. WriteConfirmation - if enabled, the user will have to confirm the change of values.

  38. WriteConfirmationPosition - the position of the write confirmation buttons. Can be Top, Right or Bottom.

  39. WriteSecure - allows the user to enable an extra security layer. If active, the user will be asked to confirm the login password in order to modify any signal.

  40. ObjectID - allows the user to define an object name for the control, that can be passed as SignalPrefix when using parameter passing in navigation.

  41. SignalName - allows the user to select a signal (using the SignalBrowser of by typing the signal name in the text box). The selected signal's value will be displayed/written by the control at run time.

  42. SignalPrefix - allows the user to select a signal prefix that can be passed when using parameter control and parameter passing in navigation. The signal prefix can be the ObjectName, ObjectName_PageSignalPrefix, PageSignalPrefix or PageSignalPrefix_ObjectName.

  43. Value - the value to be displayed if no signal is attached.

  44. States - allows the user to configure multiple states for the control.

    • BlinkingFrequency - the blink speed.

    • Condition - the condition for entering the state.

    • ConditionParameters - allows the user to create conditions for entering in different states. The condition must have a name and a signal.

    • ConditionType - the type of the condition. It can be either SignalName or Equation.

    • IsBlinking - if checked, the control will blink when it will be in this state.

    • IsEnabled - if checked, the control will be enabled when it will be in this state.

    • IsVisible - if checked, the control will be visible when it will be in this state.

    • StateName - the name of the state.

    • AlternateBackground - the background color for the alternate blink state.

    • AlternateForeground - the foreground color for the alternate blink state.

    • Background - the background color for the current state.

    • Foreground - the foreground color for the current state.