Add a spin box

Create a variable and a spin box to control the value that determines whether to display a panel or not.
TIP: Instead of adding a variable and a spin box, you can configure a communication driver and import a variable value from a controller. For more information, see Communication drivers.
  1. Add and configure a variable for spin box value:
    1. In
      Project view
      , right-click
      Model
      and select
      New
      Variable
      .
    2. In
      Properties
      , right-click
      Variable 1
      and select
      New
      Changed event
      .
      TIP: Instead of using a change event, you can also configure a transitioned event. For more information about events, see Events.
  2. Add a spin box and link the spin box value with the variable:
    1. In
      Project view
      , right-click
      MainWindow (type)
      and select
      New
      Base controls
      Spin box
      .
    2. In
      Properties
      , create a dynamic link between
      Value
      and
      ProjectName
      Model
      Variable1
      .
      For more information about dynamic links, see Create dynamic links.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.