Add a spin box

Create a spin box to display and control the value that determines which screen to display.
  1. In
    Project view
    , right-click
    Model
    and select
    New
    Variable
    .
    TIP: Instead of adding a model variable and relying on its value, you can configure a communication driver and import a variable value from a controller. For more information, see Communication drivers.
  2. In
    Project view
    , right-click
    MainWindow (type)
    and select
    New
    Base controls
    Spin box
    .
  3. In
    Properties
    :
    1. Create a dynamic link between
      Value
      and
      ProjectName
      Model
      Variable1
      .
    2. Set
      Minimum value
      to
      1
    3. Set
      Maximum value
      to
      3
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.