(form "01132" (size 47 11)

  (heading "Enter Charging Details")

   (scroll_block "charging_details" (position  1 3) (size 44  3)
      (extra  0  1)
      (scroll_size 44 3)
      (repeat interactive (grow  0  1) (instances  1 (min  1) (max 26)))
     (top
       (label (position  1 0)
         (foreground (user_option "form_text_highlight"))
         (text "Depth from")
       )
       (label (position  9 0)
         (foreground (user_option "form_text_highlight"))
         (text "Depth to")
       )
       (label (position  17 0)
         (foreground (user_option "form_text_highlight"))
         (text "Explosive")
       )
       (label (position  26 0)
         (foreground (user_option "form_text_highlight"))
         (text "Detonator")
       )
       (label (position  26 0)
         (foreground (user_option "form_text_highlight"))
         (text "Detonator position")
       )
       (label (position  26 0)
         (foreground (user_option "form_text_highlight"))
         (text "Booster")
       )
       (label (position  35 0)
         (foreground (user_option "form_text_highlight"))
         (text "Delay")
       )
     )
     (main
       (field "depth_from" (position 1 0) (display_length 6) (format real_8)
         (input disallowed) (null disallowed) (max_length 12)
         (default "0") (initialise (value "depth_to(-1)"))
       )
       (field "depth_to" (position 9 0) (display_length 6) (format real_8)
         (input allowed) (null disallowed) (max_length 12)
       )
       (field "explosive" (position 17 0) (display_length 6) 
         (input allowed) (null disallowed) (max_length 50)
       )
       (field "detonator" (position 26 0) (display_length 6) 
         (input allowed) (null allowed) (max_length 50)
         (value_in non_exclusive)
       )
       (field "num_of_dets" (position 9 0) (display_length 6) (format integer_4)
         (input allowed) (null disallowed) (max_length 12) (default "1") (low_bound 0)
       )
       (field "det_position" (position 26 0) (display_length 6) 
         (input allowed) (null allowed) (max_length 50)
         (value_in non_exclusive)
       )
       (field "booster" (position 26 0) (display_length 6) 
         (input allowed) (null allowed) (max_length 50)
         (value_in non_exclusive)
       )
       (field "num_of_boosters" (position 9 0) (display_length 6) (format real_8)
         (input allowed) (null disallowed) (max_length 12) (default "1.0") (low_bound 0.0)
       )
       (field "delay" (position 35 0) (display_length 6) 
         (input allowed) (null allowed) (max_length 50)
         (value_in non_exclusive)
         (auto_next off)
       )
     )
   )

   (label (position  1  7) 
     (text "End hole method")
   )

   (field "end_charge_method" (position  14  7) (display_length 17)
     (input allowed) (translate lower) (null disallowed)  (max_length 256)
     (value_in "adjust charge on tolerance"
               "adjust charge to hole depth"
     )
     (default "adjust charge to hole depth")
     )

   (label (position  35 7) 
     (text "Distance")
   )

   (field "tolerance_distance" (position  42.5  7) (display_length 2)
     (input allowed) (null disallowed) (max_length 10)
     (format real_8)
     (low_bound 0)
     (default "0")
     (dependency (value "end_charge_method") == "adjust charge on tolerance")
     )

   (label (position  27  8) 
     (text "Minimum charge length")
   )

   (field "minimum_charge_length" (position  42.5  8) (display_length 2)
     (input allowed) (null disallowed) (max_length 10)
     (format real_8)
     (low_bound 0)
     (default "0")
     )


  (default_buttons)

)
