(form "00669" (size 47 20)

  (heading "EXTRACT CONTOURS FROM A GRID" )

  (label (position  2 3) 
  (text "GRID INFORMATION:" )
  )
  (label (position  2 4) 
  (text "Minimum contour value" )
  )
  (field "minimum" (position 25 4) (display_length 10)
     (input disallowed)  (format real_8)
     (translate lower)   (max_length 10)
     )
  (label (position  2 5) 
  (text "Maximum contour value" )
  )
  (field "maximum" (position 25 5) (display_length 10)
     (input disallowed)  (format real_8)
     (translate lower)   (max_length 10)
     )
  (label (position  2 7) 
  (text "CONTOUR DEFINITION:" )
  )
  (label (position  2  8) (text "Define contours by (I)nterval or (R)ange?"))
  (field "contour_type" (position 33  8)
     (display_length  1) (input allowed)
     (value_in "I" "R") (default "I")
    (translate upper) (null allowed) (max_length 1))
   (field "min_label" 
    (position 2  9) 
    (display_length  15) 
    (foreground (user_option "form_foreground"))
    (background (user_option "form_background"))
    (input disallowed)
    (value_in "Minimum contour")
    (browser none)
    (default "Minimum contour")
    (dependency (value "contour_type") == "I") 
   )
   (field "min_cont" (position 20  9) (display_length  10) (input allowed)
    (format real_8) (null disallowed) (max_length 10)
    (dependency (value "contour_type") == "I"))
   (field "range_label" 
    (position 2  9) 
    (display_length  15) 
    (foreground (user_option "form_foreground"))
    (background (user_option "form_background"))
    (input disallowed)
    (value_in "Contour range")
    (browser none)
    (default "Contour range")
    (dependency (value "contour_type") == "R") 
   )
   (field "contour_range" (position 20  9) (display_length  20) (input allowed)
    (format range) (null allowed) (max_length 50)
    (dependency (value "contour_type") == "R"))
   (field "max_label" 
    (position 2  10) 
    (display_length  15) 
    (foreground (user_option "form_foreground"))
    (background (user_option "form_background"))
    (input disallowed)
    (value_in "Maximum contour")
    (browser none)
    (default "Maximum contour")
    (dependency (value "contour_type") == "I") 
   )
   (field "max_cont" (position 20  10) (display_length  10) (input allowed)
    (format real_8) (null disallowed) (max_length 10)
    (dependency (value "contour_type") == "I"))
   (field "interval_label" 
    (position 2  11) 
    (display_length  15) 
    (foreground (user_option "form_foreground"))
    (background (user_option "form_background"))
    (input disallowed)
    (value_in "Contour interval")
    (browser none)
    (default "Contour interval")
    (dependency (value "contour_type") == "I") 
   )
   (field "interval" (position 20  11) (display_length  10) (input allowed)
    (format real_8) (null disallowed) (max_length 10)
    (dependency (value "contour_type") == "I"))
  (label (position  2  13) (text "Smooth contours?"))
  (field "smooth" (position 17  13) (display_length  1) (input allowed)
    (value_in "Y" "N") (default "N")
    (translate upper) (null allowed) (max_length 1)
    )
    (field "smooth_min_label" 
    (position 2  14) 
    (display_length  30) 
    (foreground (user_option "form_foreground"))
    (background (user_option "form_background"))
    (input disallowed)
    (value_in "Minimum points in contour")
    (browser none)
    (default "Minimum points in contour")
    (dependency (value "smooth") == "Y") 
   )
   (field "smooth_min" (position 24  14) (display_length  2) (input allowed)
    (low_bound 0) (high_bound 50) (default "5")
    (format integer_4) (null disallowed) (max_length 2)
    (dependency (value "smooth") == "Y")
    )
   (field "smooth_label" 
    (position 2  15) 
    (display_length  30) 
    (foreground (user_option "form_foreground"))
    (background (user_option "form_background"))
    (input disallowed)
    (value_in "Number of lines per segment")
    (browser none)
    (default "Number of lines per segment")
    (dependency (value "smooth") == "Y") 
   )
   (field "smooth_no" (position 24  15) (display_length  2) (input allowed)
    (low_bound 2) (high_bound 10) (default "3")
    (format integer_4) (null disallowed) (max_length 2)
    (dependency (value "smooth") == "Y")
    )
  (label (position  2  17) (text "Constrain contours?"))

  (field "constrain" (position 17  17) (display_length  1) (input allowed)
    (value_in "Y" "N") (default "N")
    (translate upper) (null allowed) (max_length 1)
    )
  (default_buttons)
)
