(form "10124" (position 0 2) (size 80 24)
  (heading "UNDERGROUND STATION TRAVERSING")

  (label (position  10  2) (text "Name"))
  (label (position  23  2) (text "Height"))
  (label (position  33  2) (text "Y"))
  (label (position  45  2) (text "X"))
  (label (position  57  2) (text "Z"))
  (label (position  69  2) (text "Z Floor"))


  (label (position  1  3) (text "Backsight"))
  (field "backsight" (position 10  3) (display_length 12) (input allowed)
    (translate upper) (null disallowed) (max_length 16) (value_in non_exclusive)
    )

  (field "yb" (position 33  3) (display_length 10)
    (foreground)
    (background (user_option "form_background"))
    (translate upper) (null disallowed) (max_length 16)
    (decimals 3)) 
  (field "xb" (position 45  3) (display_length 10)
    (foreground)
    (background (user_option "form_background")) 
    (translate upper) (null disallowed) (max_length 16)
    (decimals 3))
  (field "zb" (position 57  3) (display_length 9)
    (foreground)
    (background (user_option "form_background")) 
    (translate upper) (null disallowed) (max_length 16)
    (decimals 3))
  (field "zb_floor" (position 69  3) (display_length 9)
    (foreground)
    (background (user_option "form_background")) 
    (translate upper) (null allowed) (max_length 16)
    (decimals 3))
  
  (label (position  1  4) (text "SURVEY_SETUP_STATION_TXT"))
  (field "setup" (position 10  4) (display_length 12) (input allowed)
    (translate upper) (null disallowed) (max_length 16) (value_in non_exclusive)
    )
  (field "hi" (position 23  4) (display_length 7) (input allowed)
    (format real_8) (null disallowed) (max_length 10)
    (decimals 3) (default "0")
    )
  (field "ys" (position 33  4) (display_length 10)
    (foreground)
    (background (user_option "form_background"))
    (translate upper) (null disallowed) (max_length 16)
    (decimals 3))
  (field "xs" (position 45  4) (display_length 10) 
    (foreground)
    (background (user_option "form_background"))
    (translate upper) (null disallowed) (max_length 16)
    (decimals 3))
  (field "zs" (position 57  4) (display_length 9)
    (foreground)
    (background (user_option "form_background")) 
    (translate upper) (null disallowed) (max_length 16)
    (decimals 3))
  (field "zs_floor" (position 69  4) (display_length 9)
    (foreground)
    (background (user_option "form_background")) 
    (translate upper) (null allowed) (max_length 16)
    (decimals 3))

  (label (position  1  5) (text "Foresight"))
  (field "foresight" (position 10  5) (display_length 12) (input allowed)
    (translate upper) (null disallowed) (max_length 16)
    )
  (field "yf" (position 33  5) (display_length 10)
    (foreground)
    (background (user_option "form_background")) 
    (translate upper) (null disallowed) (max_length 16)
    (decimals 3))
  (field "xf" (position 45  5) (display_length 10)
    (foreground)
    (background (user_option "form_background")) 
    (translate upper) (null disallowed) (max_length 16)
    (decimals 3))
  (field "zf" (position 57  5) (display_length 9)
    (foreground)
    (background (user_option "form_background")) 
    (translate upper) (null disallowed) (max_length 16)
    (decimals 3))
  (field "zf_floor" (position 69  5) (display_length 9)
    (foreground)
    (background (user_option "form_background")) 
    (translate upper) (null allowed) (max_length 16)
    (decimals 3))

  (field "level_area" (position 12  6) (display_length 16) (input allowed)
    (translate upper) (null disallowed) (max_length 16)
    (help "FORM_10120_LEVEL_AREA_TIP"))

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

  (field "instrument" (position 10 7) (display_length 10) (input allowed)
    (max_length 128)
    (null disallowed) 
    (help "SRV_INSTRUMENT_USED_TIP")
   )

  (scroll_block "main" (position  1 9) (size 77  13) (extra  0  0)
    (scroll_size 77 77) 
    (main

      (label (position  9  0) (text "Check distance to backsight"))
      (field "check_back_distance" (position 36  0) (display_length 1) 
        (input allowed) (translate upper) 
        (value_in "Y" "N")
        (default "N")
        )

     (field "check_back_height" (position 36  0) (display_length 1) 
        (input allowed) (translate upper) 
        (value_in "Y" "N")
        (default "N")
      )

      (label (position  2  2) (text "Face"))
      (label (position  9  1) (text "Vertical angles from Setup to Backsight"))
      (scroll_block "rev_vertical_angles" (position 9 3) 
        (size 24  6) (extra  8  1) (scroll_size 24 8)
        (repeat interactive (grow  0  1) (instances  1 (min  1) (max 8)))
        (top
          (label (position  1  0) (text "Observed"))
          (label (position  14  0) (text "Angle"))
        )
        (left
          (label (position  1  0) (text "1. Left"))
          (label (position  1  1) (text "1. Right"))
          (label (position  1  2) (text "2. Left"))
          (label (position  1  3) (text "2. Right"))
          (label (position  1  4) (text "3. Left"))
          (label (position  1  5) (text "3. Right"))
          (label (position  1  6) (text "4. Left"))
          (label (position  1  7) (text "4. Right"))
        )
        (main
          (field "rev_vert_observed" (position 1  0) (display_length 7) 
            (input allowed) (translate lower) (null disallowed)
            (format dms_angle) (max_length 8) (default "0")
            (dependency (value "check_back_distance") == "Y")
            (low_bound 0) (high_bound 6.28318530717960044)
            )
          (field "rev_vert_angle" (position 14  0) (display_length 7) 
            (background) (translate lower) (input disallowed)
            (format dms_angle)
            (dependency (value "check_back_distance") == "Y")
            (max_length 8))
        )
      )

      (field "mean_rev_vert_angle" (position 22  9) (display_length 7) 
        (input disallowed) (translate lower) (max_length 8)
        (format dms_angle)
        (dependency (value "check_back_distance") == "Y")
      )

      (label (position  45  0) (text "New Floor to Setup height"))
      (field "floor_to_setup" (position 70  0) (display_length 1) 
        (input allowed) (translate upper) (value_in "Y" "N")
        (default "N")
        )

      (label (position  45  1) (text "Height"))
      (field "floor_to_setup_height" (position 60  1) (display_length 8) 
        (input allowed) (format real_8) (decimals 3)
        (dependency (value "floor_to_setup") == "Y")
        )

      (label (position  45  3) (text "Slope Distance"))
      (field "rev_obs_distance" (position 62  3) (display_length 7) 
        (input allowed) (max_length 8) (decimals 3) (null disallowed)
        (format real_8)
        (dependency (value "check_back_distance") == "Y")
        )

      (label (position  45  4) (text "Reverse Bearing"))
      (field "use_stored_bearing" (position 62 4) (display_length 1)
        (input allowed)
        (value_in "Y" "N"))
      (field "stored_rev_bearing" (position 62  5) (display_length 7)
        (foreground)
        (background (user_option "form_background"))
        (format dms_angle) (max_length 8) (decimals 4)
        (low_bound 0) (high_bound 6.283185307) 
      )

      (field "calculated_rev_bearing" (position 62  6) (display_length 7) 
        (foreground)
        (background (user_option "form_background"))
        (format dms_angle) (max_length 8) (decimals 4)
        (low_bound 0) (high_bound 6.283185307)
      )

      (label (position  45  7) (text "Reverse Distance"))
      (field "rev_distance" (position 62  7) (display_length 7)
        (foreground)
        (background (user_option "form_background")) 
        (translate lower) (max_length 8) (decimals 3)
      )

      (label (position  45  8) (text "Check Distance"))
      (field "check_distance" (position 62  8) (display_length 7)
        (foreground)
        (background (user_option "form_background")) 
        (translate lower) (max_length 8) (decimals 3)
      )

      (label (position  45  9) (text "Distance Error"))
      (field "distance_error" (position 62  9) (display_length 7) 
        (foreground)
        (background (user_option "form_background"))
        (translate lower) (max_length 8) (decimals 3)
      )

      (field "rev_obs_height" (position 62  3) (display_length 7) 
        (input allowed) (max_length 8) (decimals 3) (null disallowed)
        (format real_8)
        (dependency (value "check_back_height") == "Y")
      )
      (field "rev_height" (position 62  7) (display_length 7)
        (foreground)
        (background (user_option "form_background")) 
        (translate lower) (max_length 8) (decimals 3)
      )
      (field "check_height" (position 62  8) (display_length 7)
        (foreground)
        (background (user_option "form_background")) 
        (translate lower) (max_length 8) (decimals 3)
      )
      (field "height_error" (position 62  9) (display_length 7)
        (foreground)
        (background (user_option "form_background")) 
        (translate lower) (max_length 8) (decimals 3)
      )

      (label (position 1 11) (foreground (user_option "form_text_highlight"))
       (text "Use the outer scroll bar to scroll down to enter the horizontal angles"))



      (label (position  9  14) (text "Horizontal angle observations"))
      (field "horiz_method" (position 33  14) (display_length 12) 
        (input allowed) (translate lower) (null disallowed) (max_length 16)
        (default "reiteration")
        (value_in "reiteration" "repetition")
         )

      (label (position  2  16) (text "Face"))
      (label (position  9  15) (text "Reiteration angles"))
      (scroll_block "reiteration" (position  9 17) (size 31  6) (extra  8  1)
        (scroll_size 31 8)
        (repeat interactive (grow  0  1) (instances  1 (min  1) (max 8)))
        (top
          (label  (position 1  0)(text "Backsight"))
          
          (label  (position 12  0)(text "Foresight"))
          
          (label (position  23  0) (text "Angle"))
        )
        (left
          (label (position  1  0) (text "1. Left"))
          (label (position  1  1) (text "1. Right"))
          (label (position  1  2) (text "2. Left"))
          (label (position  1  3) (text "2. Right"))
          (label (position  1  4) (text "3. Left"))
          (label (position  1  5) (text "3. Right"))
          (label (position  1  6) (text "4. Left"))
          (label (position  1  7) (text "4. Right"))
        )
        (main
          (field "reit_backsight" (position 1  0) (display_length 7) 
            (input allowed) (translate lower) (null disallowed)
            (format dms_angle) (max_length 8) (default "0")
            (dependency (value "horiz_method") == "reiteration")
            (low_bound 0) (high_bound 6.28318530717960044)
            )
          (field "reit_foresight" (position 11  0) (display_length 7) 
            (input allowed) (translate lower) (null disallowed)
            (format dms_angle) (max_length 8) (default "0")
            (low_bound 0) (high_bound 6.28318530717960044)
            (dependency (value "horiz_method") == "reiteration")
            )
          (field "reit_angle" (position 21  0) (display_length 7) 
            (translate lower) (input disallowed)
            (max_length 8)
            (format dms_angle)
            (dependency (value "horiz_method") == "reiteration"))
        )
      )
      (field "mean_reit_angle" (position 30  23) (display_length 7) 
        (input disallowed) (translate lower) (max_length 8)
        (format dms_angle)
        (dependency (value "horiz_method") == "reiteration")
      )


      (label (position  44  15) (text "Repetition angles"))
      (scroll_block "repetition" (position 44 17) (size 31  6) (extra  0  1)
        (scroll_size 31 9)
        (repeat interactive (grow  0  1) (instances  2 (min  2) (max 9)))
        (top
          (label (position  1  0) (text "Station"))
          (label (position  11  0) (text "Observed"))
          (label (position  21  0) (text "Turned"))
        )

        (main
          (field "repeat_station" (position 1  0) (display_length 7) 
            (background) (translate upper) (input disallowed)
            (initialise (value "repeat_station(-1)"))
            (dependency (value "horiz_method") == "repetition"))
          (field "repeat_observed_angle" (position 11  0) (display_length 7) 
            (input allowed) (translate lower) (null disallowed)
            (format dms_angle) (default "0")
            (max_length 8)
            (low_bound 0) (high_bound 6.28318530717960044)
            (dependency (value "horiz_method") == "repetition")
            )
          (field "repeat_turned_angle" (position 21  0) (display_length 7) 
            (translate lower) (input disallowed)
            (max_length 8)
            (format dms_angle)
            (dependency (value "horiz_method") == "repetition"))

        )
      )
      (field "mean_repetition_angle" (position 65  23) (display_length 7) 
        (input disallowed) (translate lower) (max_length 8)
        (format dms_angle)
        (dependency (value "horiz_method") == "repetition")
      )
      (label (position 1 24) (foreground (user_option "form_text_highlight"))
       (text "Use the outer scroll bar to scroll down to enter the vertical angles"))


      (label (position  9  28) (text "Vertical angle observations to"))
      (field "vert_angle_method" (position 35  28) (display_length 10) 
        (input allowed) (translate lower) 
        (value_in "1 target" "2 targets")
        (default "1 target")
        )

      (label (position  2  30) (text "Face"))
      (label (position  9  29) (text "Target 1 vertical angles"))
      (scroll_block "target1_angles" (position 9 31) (size 24  6) 
        (extra  8  1) (scroll_size 24 8)
        (repeat interactive (grow  0  1) (instances  1 (min  1) (max 8)))
        (top
          (label (position  1  0) (text "Observed"))
          (label (position  14  0) (text "Angle"))
        )
        (left
          (label (position  1  0) (text "1. Left"))
          (label (position  1  1) (text "1. Right"))
          (label (position  1  2) (text "2. Left"))
          (label (position  1  3) (text "2. Right"))
          (label (position  1  4) (text "3. Left"))
          (label (position  1  5) (text "3. Right"))
          (label (position  1  6) (text "4. Left"))
          (label (position  1  7) (text "4. Right"))
        )
        (main
          (field "target1_observed" (position 1  0) (display_length 7) 
            (input allowed) (translate lower) (null disallowed)
            (format dms_angle) (max_length 8) (default "0")
            (low_bound 0) (high_bound 6.28318530717960044)
            )
          (field "target1_angle" (position 14  0) (display_length 7) 
            (translate lower) (input disallowed)
            (format dms_angle)
            (max_length 8))
        )
      )

      (field "target1_mean_angle" (position 22  37) (display_length 7) 
        (format dms_angle)
        (input disallowed) (translate lower) (max_length 8)
      )

      (label (position  47  29) (text "Target 2 vertical angles"))
      (label (position  41  30) (text "Face"))
      (scroll_block "target2_angles" (position 47 31) (size 24  6) 
        (extra  8  1) (scroll_size 24 8)
        (repeat interactive (grow  0  1) (instances  1 (min  1) (max 8)))
        (top
          (label (position  1  0) (text "Observed"))
          (label (position  14  0) (text "Angle"))
        )
        (left
          (label (position  1  0) (text "1. Left"))
          (label (position  1  1) (text "1. Right"))
          (label (position  1  2) (text "2. Left"))
          (label (position  1  3) (text "2. Right"))
          (label (position  1  4) (text "3. Left"))
          (label (position  1  5) (text "3. Right"))
          (label (position  1  6) (text "4. Left"))
          (label (position  1  7) (text "4. Right"))
        )
        (main
          (field "target2_observed" (position 1  0) (display_length 7) 
            (input allowed) (translate lower) (null disallowed)
            (format dms_angle) (default "0") (max_length 8)
            (dependency (value "vert_angle_method") == "2 targets")
            (low_bound 0) (high_bound 6.28318530717960044)
            )
          (field "target2_angle" (position 14  0) (display_length 7) 
            (input disallowed) (translate lower) (input disallowed)
            (dependency (value "vert_angle_method") == "2 targets")
            (format dms_angle)
            (max_length 8))
        )
      )

      (field "target2_mean_angle" (position 60  37) (display_length 7) 
        (input disallowed) (translate lower) (max_length 8)
        (format dms_angle)
        (dependency (value "vert_angle_method") == "2 targets")
      )


      (label (position 1 38) (foreground (user_option "form_text_highlight"))
       (text "Use the outer scroll bar to scroll down to enter the slope distances and target heights"))


      (label (position  1  40) (text "Heights to Target 1"))
      (label (position  1  41) (text "Station to target"))
      (field "back_to_target1" (position 20  41) (display_length 7) 
        (input allowed) (format real_8) (max_length 8) (decimals 3)
        (default "0")
        )
      (label (position  1  42) (text "Floor to target"))
      (field "floor_to_target1" (position 20  42) (display_length 7) 
        (input allowed) (format real_8) (max_length 8) (decimals 3)
        (default "0")
        )


      (label (position  41  40) (text "Heights to Target 2"))
      (label (position  41  41) (text "Station to target"))
      (field "back_to_target2" (position 60  41) (display_length 7) 
        (input allowed) (format real_8) (max_length 8) (decimals 3)
        (default "0")
        (dependency (value "vert_angle_method") == "2 targets")
        )
      (label (position  41  42) (text "Floor to target"))
      (field "floor_to_target2" (position 60  42) (display_length 7) 
        (input allowed) (format real_8) (max_length 8) (decimals 3)
        (default "0")
        (dependency (value "vert_angle_method") == "2 targets")
        )



      (label (position  1  44) (text "Target 1 slope distances"))
      (scroll_block "target1_distances" (position 1 46) (size 35  4) 
        (extra  0  1) (scroll_size 35 8)
        (repeat interactive (grow  0  1) (instances  1 (min  1) (max 8)))
        (top
          (label (position  1  0) (text "Whole"))
          (label (position  13  0) (text "Part"))
          (label (position  25  0) (text "Distance"))
        )
        (main
          (field "target1_whole" (position 1  0) (display_length 7) 
            (input allowed) (null disallowed)
            (format real_8) (max_length 8) (default "0")
            )
          (field "target1_part" (position 13  0) (display_length 7) 
            (input allowed) (null disallowed)
            (format real_8) (max_length 8) (default "0")
            )
          (field "target1_distance" (position 25  0) (display_length 7) 
            (input disallowed)
            (max_length 8)
          )
        )
      )

      (field "target1_mean_distance" (position 26  50) (display_length 7) 
        (input disallowed) (translate lower) (max_length 8) (decimals 3)
      )


      (label (position  41  44) (text "Target 2 slope distances"))
      (scroll_block "target2_distances" (position 41 46) (size 35  4) 
        (extra  0  1) (scroll_size 35 8)
        (repeat interactive (grow  0  1) (instances  1 (min  1) (max 8)))
        (top
          (label (position  1  0) (text "Whole"))
          (label (position  13  0) (text "Part"))
          (label (position  25  0) (text "Distance"))
        )
        (main
          (field "target2_whole" (position 1  0) (display_length 7) 
            (input allowed) (null disallowed)
            (format real_8) (max_length 8) (default "0")
            (dependency (value "vert_angle_method") == "2 targets")
            )
          (field "target2_part" (position 13  0) (display_length 7) 
            (format real_8) (input allowed) (null disallowed)
            (max_length 8) (default "0")
            (dependency (value "vert_angle_method") == "2 targets")
            )
          (field "target2_distance" (position 25  0) (display_length 7) 
            (input disallowed)
            (dependency (value "vert_angle_method") == "2 targets")
            (max_length 8)
          )
        )
      )

      (field "target2_mean_distance" (position 66  50) (display_length 7) 
        (input disallowed) (translate lower) (max_length 8) (decimals 3)
            (dependency (value "vert_angle_method") == "2 targets")
      )

      /*
      ** ---------------------------------------------------
      ** reverse vertical angles and reverse slope distances
      ** ---------------------------------------------------
      */
      (label (position 1 51) (foreground (user_option "form_text_highlight"))
       (text "Use the outer scroll bar to scroll down to enter the reverse vertical angles"))




      (label (position  9  53) (text "Calculate using reverse heights and distances"))
      (field "use_reverse_observations" (position 39  53) (display_length 1) 
        (input allowed) (translate upper) 
        (value_in "Y" "N")
        (default "N")
        )

      (label (position  9  54) (text "Reverse vertical angle observations to"))
      (field "reverse_vert_angle_method" (position 39  54) (display_length 10) 
        (input allowed) (translate lower) 
        (value_in "1 target" "2 targets")
        (default "1 target")
        )

      (label (position  2  56) (text "Face"))
      (label (position  9  55) (text "Target 1 reverse vertical angles"))
      (scroll_block "reverse_target1_angles" (position 9 57) (size 24  6) 
        (extra  8  1) (scroll_size 24 8)
        (repeat interactive (grow  0  1) (instances  1 (min  1) (max 8)))
        (top
          (label (position  1  0) (text "Observed"))
          (label (position  14  0) (text "Angle"))
        )
        (left
          (label (position  1  0) (text "1. Left"))
          (label (position  1  1) (text "1. Right"))
          (label (position  1  2) (text "2. Left"))
          (label (position  1  3) (text "2. Right"))
          (label (position  1  4) (text "3. Left"))
          (label (position  1  5) (text "3. Right"))
          (label (position  1  6) (text "4. Left"))
          (label (position  1  7) (text "4. Right"))
        )
        (main
          (field "reverse_target1_observed" (position 1  0) (display_length 7) 
            (input allowed) (translate lower) (null disallowed)
            (format dms_angle) (max_length 8) (default "0")
            (low_bound 0) (high_bound 6.28318530717960044)
            )
          (field "reverse_target1_angle" (position 14  0) (display_length 7) 
            (translate lower) (input disallowed)
            (format dms_angle)
            (max_length 8))
        )
      )

      (field "reverse_target1_mean_angle" (position 22  63) 
        (display_length 7) 
        (format dms_angle)
        (input disallowed) (translate lower) (max_length 8)
      )

      (label (position  47  55) (text "Target 2 reverse vertical angles"))
      (label (position  41  56) (text "Face"))
      (scroll_block "reverse_target2_angles" (position 47 57) (size 24  6) 
        (extra  8  1) (scroll_size 24 8)
        (repeat interactive (grow  0  1) (instances  1 (min  1) (max 8)))
        (top
          (label (position  1  0) (text "Observed"))
          (label (position  14  0) (text "Angle"))
        )
        (left
          (label (position  1  0) (text "1. Left"))
          (label (position  1  1) (text "1. Right"))
          (label (position  1  2) (text "2. Left"))
          (label (position  1  3) (text "2. Right"))
          (label (position  1  4) (text "3. Left"))
          (label (position  1  5) (text "3. Right"))
          (label (position  1  6) (text "4. Left"))
          (label (position  1  7) (text "4. Right"))
        )
        (main
          (field "reverse_target2_observed" (position 1  0) (display_length 7) 
            (input allowed) (translate lower) (null disallowed)
            (format dms_angle) (default "0") (max_length 8)
            (dependency (value "reverse_vert_angle_method") == "2 targets")
            (low_bound 0) (high_bound 6.28318530717960044)
            )
          (field "reverse_target2_angle" (position 14  0) (display_length 7) 
            (input allowed) (translate lower) (input disallowed)
            (dependency (value "reverse_vert_angle_method") == "2 targets")
            (format dms_angle) (low_bound -6.283185307) (high_bound 6.283185307)
            (max_length 8))
        )
      )

      (field "reverse_target2_mean_angle" (position 60  63) 
        (display_length 7) 
        (input disallowed) (translate lower) (max_length 8)
        (format dms_angle)
        (dependency (value "reverse_vert_angle_method") == "2 targets")
      )


      (label (position 1 64) (foreground (user_option "form_text_highlight"))
       (text "Use the outer scroll bar to scroll down to enter the reverse slope distances and target heights"))


      (label (position  1  66) (text "Instrument and target heights with respect to the station from which reverse observations are taken"))

      (label (position  1  67) (text "Station to instrument"))
      (field "reverse_back_to_setup" (position 20  67) (display_length 7) 
        (input allowed) (format real_8) (max_length 8) (decimals 3)
        
        (default "0")
        )


      (label (position  41  67) (text "Station to target 1"))
      (field "reverse_back_to_target1" (position 60  67) (display_length 7) 
        (input allowed) (format real_8) (max_length 8) (decimals 3)
        (default "0")
        )


      (label (position  41  68) (text "Station to target 2"))
      (field "reverse_back_to_target2" (position 60  68) (display_length 7) 
        (input allowed) (format real_8) (max_length 8) (decimals 3)
        (default "0")
        (dependency (value "reverse_vert_angle_method") == "2 targets")
        )


      (label (position  1  70) (text "Target 1 reverse slope distances"))
      (scroll_block "reverse_target1_distances" (position 1 72) (size 35  4) 
        (extra  0  1) (scroll_size 35 8)
        (repeat interactive (grow  0  1) (instances  1 (min  1) (max 8)))
        (top
          (label (position  1  0) (text "Whole"))
          (label (position  13  0) (text "Part"))
          (label (position  25  0) (text "Distance"))
        )
        (main
          (field "reverse_target1_whole" (position 1  0) (display_length 7) 
            (input allowed) (null disallowed)
            (format real_8) (max_length 8) (default "0")
            )
          (field "reverse_target1_part" (position 13  0) (display_length 7) 
            (input allowed) (null disallowed)
            (format real_8) (max_length 8) (default "0")
            )
          (field "reverse_target1_distance" (position 25  0) (display_length 7) 
            (input disallowed)
            (max_length 8)
          )
        )
      )

      (field "reverse_target1_mean_distance" (position 26  76) 
        (display_length 7) (decimals 3)
        (input disallowed) (translate lower) (max_length 8)
      )


      (label (position  41  70) (text "Target 2 reverse slope distances"))
      (scroll_block "reverse_target2_distances" (position 41 72) (size 35  4) 
        (extra  0  1) (scroll_size 35 8)
        (repeat interactive (grow  0  1) (instances  1 (min  1) (max 8)))
        (top
          (label (position  1  0) (text "Whole"))
          (label (position  13  0) (text "Part"))
          (label (position  25  0) (text "Distance"))
        )
        (main
          (field "reverse_target2_whole" (position 1  0) (display_length 7) 
            (input allowed) (null disallowed)
            (format real_8) (max_length 8) (default "0")
            (dependency (value "reverse_vert_angle_method") == "2 targets")
            )
          (field "reverse_target2_part" (position 13  0) (display_length 7) 
            (format real_8) (input allowed) (null disallowed)
            (max_length 8) (default "0")
            (dependency (value "reverse_vert_angle_method") == "2 targets")
            )
          (field "reverse_target2_distance" (position 25  0) 
            (display_length 7)  
            (input disallowed)
            (max_length 8)
          )
        )
      )

      (field "reverse_target2_mean_distance" (position 66  76) 
        (display_length 7) (decimals 3)
        (input disallowed) (translate lower) (max_length 8)
            (dependency (value "reverse_vert_angle_method") == "2 targets")
      )

    )
  )

  (default_buttons)
)
