(form "00865" (size 80 18) 

  (heading "WARNING: New Station Order")

  (label (position  2  3) (text "Station"))
   (field "station" (position  20  3) (display_length 20)
   (input disallowed) (max_length 20))

  (label (position  2  4) (text "STATION_ERRORS_CASE"))
   (field "the_case" (position  20  4) (display_length 40)
   (input disallowed) (max_length 100))

  (field "instrument_label" 
    (position 2  5) 
    (display_length  25) 
    (foreground (user_option "form_foreground"))
    (background (user_option "form_background"))
    (input disallowed)
    (value_in "Instrument")
    (browser none)
    (default "Instrument")
  )

  (field "instrument" (position 10 5) (display_length 10) (input disallowed)
    (max_length 128)
   )

  (scroll_block (position  2  7) (size 80  3)
    (extra  0  1)
    (scroll_size 3 100)
    (repeat (grow  0  1) (instances  1 (min  1) (max 3)))
    (main)
    (top
      (label (position  1  0) (text "parameter"))
      (label (position  32  0) (text "num meas"))
      (label (position  44  0) (text "value"))
      (label (position  54  0) (text "dist"))
      (label (position  64  0) (text "order"))
     )
    (main
      (field "param_name" (position 1  0) (display_length 30) (input disallowed))
      (field "num_meas" (position 32  0) (display_length 10) (format integer_4) (input disallowed))
      (field "value" (position 44  0) (display_length 10) (input disallowed))
      (field "dist" (position 54  0) (display_length 10) (input disallowed))
      (field "order" (position 64  0) (display_length 10) (input disallowed)))
  )

  (label (position  2  8) (text "Preliminary order from station errors table"))
  (field "prelim_order" (position  20  8) (display_length 20)
  (input disallowed) (max_length 40))

  (label (position  2  10) (text "Backsight station"))
   (field "backsight" (position  20  8) (display_length 20)
   (input disallowed) (max_length 20))

  (label (position  2  11) (text "Backsight station order"))
   (field "backsight_order" (position  20  9) (display_length 20)
   (input disallowed) (max_length 40))

  (label (position  2  12) (text "Setup station"))
   (field "setup" (position  20  11) (display_length 20)
   (input disallowed) (max_length 20))

  (label (position  2  13) (text "Setup station order"))
   (field "setup_order" (position  20  12) (display_length 20)
   (input disallowed) (max_length 40))

  (label (position  2  14) (text "Final new station order"))
  (field "final_order" (position  20  10) (display_length 20)
  (input disallowed) (max_length 40))

  (label (position  2  15) (text "FRM_STAT_ERRS_WARNING_TEXT"))

  (menu (position 10 16) (size 5 1)
    (item "ok" (function "ok") (text "OK"))
  )
  (menu (position 20 16) (size 5 1)
    (item "cancel" (function "cancel") (text "CANCEL"))
  )
)
