(form "00100" (size 45 14)
  (heading "VIEW ALONG STRING")
  (label (position  2  3) (text "View"))
  (label (position  2  4) (text "View Angle/Bearing"))
  (label (position  2  5) (text "View dip"))
  (label (position  2  6) (text "Pause at each frame"))
  (label (position  2  7) (text "Max distance between frames"))
  (label (position  2  8) (text "Camera field width"))
  (field "method" (position  15  3) (display_length 19) (input allowed)
    (value_in "to a point" 
              "along string" 
              "along fixed bearing" 
              "along fixed angle")
    (translate lower) (null allowed) (max_length 19)
    )
  (field "view_bearing" (position 28  4) (display_length  5) (input allowed)
    (dependency (value "method") != "to a point")
    (translate upper) (format real_8) (null disallowed) (max_length 5)
    )
  (field "view_dip" (position 28  5) (display_length  5) (input allowed)
    (dependency (value "method") != "to a point")
    (translate upper) (format real_8) (null disallowed) (max_length 5)
    )
  (field "pause" (position 28  6) (display_length  1) (input allowed)
    (value_in "Y" "N")
    (translate upper) (null allowed) (max_length 1)
    )
  (field "maxdist" (position 28  7) (display_length 10) (input allowed)
    (low_bound 0.1) (high_bound 1000000)
    (translate upper) (format real_8) (null disallowed) (max_length 10)
    )
  (field "camera_field" (position 28  8) (display_length 10) (input allowed)
    (low_bound 1) (high_bound 1000000)
    (translate upper) (format real_8) (null disallowed) (max_length 10)
    )
  (field "zoffset" (position 28  8) (display_length 10) (input allowed)
    (translate upper) (format real_8) (null disallowed) (max_length 10))


  (label (position  2  10) (text "Base name for image files"))
  (field "base_filename" (position 20  10) (display_length 20) (input allowed)
    (max_length 252)
    (translate lower) (null allowed)
    (file (extension trim "*.gif,*.png"))
    )

  (label (position  2  11) (text "Image type"))
  (field "file_type" (position 20  11) (display_length  10) (input allowed)
    (value_in "gif" "png")
     (default "gif")
    (translate lower) (null disallowed)
    (dependency (value "base_filename") != "")
    )

  (label (position  2  12) (text "X resolution"))
  (field "xres" (position 20  12) (display_length  5) (input allowed)
    (low_bound 1) (high_bound 10000)
    (format integer_4) (null disallowed) (max_length 5)
    (dependency (value "base_filename") != "")
    )

  (label (position  2  13) (text "Y resolution"))
  (field "yres" (position 20 13) (display_length  5) (input allowed)
    (low_bound 1) (high_bound 10000)
    (format integer_4) (null disallowed) (max_length 5)
    (dependency (value "base_filename") != "")
    (help (field "xres")))
  (default_buttons)
)
