(form "00341" (size 50 17)
  (help "")
  (heading "Simulation of sun passing over the scene")

  (label (position  2  5) (text "Start time"))
  (field "start_time" (position 20  5) (display_length 8) (input allowed)
    (null disallowed) (max_length 8) 
    (format time)
    (help ""))

  (label (position  2  6) (text "End time"))
  (field "end_time" (position 20  6) (display_length 8) (input allowed)
    (null disallowed) (max_length 8) 
    (format time)
    (help ""))

  (label (position  2  7) (text "Increment"))
  (field "increment" (position 20  7) (display_length 8) (input allowed)
    (null disallowed) (max_length 8) 
    (format time)
    (help ""))

  (label (position  2  8) (text "Latitude"))
  (field "latitude" (position 20  8) (display_length 8) (input allowed)
    (null disallowed) (max_length 16) (low_bound -90) (high_bound 90)
    (format real_8)
    (help ""))

  (label (position  2  9) (text "Spot light colour"))
  (field "colour" (position 20  9) (display_length 16) (input allowed)
    (format colour) (null disallowed) (max_length 128)
    (help ""))

  (label (position  2  10) (text "Rendering method"))
  (field "rendering" (position 20  10) (display_length 1) (input allowed)
    (translate upper) (null disallowed) (max_length 1)
    (value_in "N" "G" "P")
    (help ""))

  (label (position  2  11) (text "Edge lighting"))
  (field "edges" (position 20  11) (display_length 1) (input allowed)
    (translate upper) (null disallowed) (max_length 1)
    (value_in "Y" "N")
    (help ""))

  (label (position  2  13) (text "Base name for image files"))
  (field "base_filename" (position 20  13) (display_length 20) (input allowed)
    (max_length 252)
    (translate lower) (null allowed)
    (file (extension trim "*.gif,*.png"))
    (help "The file name nominated will have an extension of .GIF or .PNG "
          "appended automatically. Example: If the name entered is ISOVIEW, "
          "the output file may be ISOVIEW.GIF. A number, starting from 1 will "
          "be appended to the base name for each image frame."))

  (label (position  2  14) (text "Image type"))
  (field "file_type" (position 20  14) (display_length  10) (input allowed)
    (value_in "gif" "png")
     (default "gif")
    (translate lower) (null disallowed)
    (dependency (value "base_filename") != "")
    (help "Output image can be dumped either as GIF or PNG files."))

  (label (position  2  15) (text "X resolution"))
  (field "xres" (position 20  15) (display_length  5) (input allowed)
    (low_bound 1) (high_bound 10000)
    (format integer_4) (null disallowed) (max_length 5)
    (dependency (value "base_filename") != "")
    (help "The number of pixels to be used for the Y and X axes defaults to "
          "the current screen resolution.  An image at a higher resolution "
          "than the current screen resolution may be created by specifying "
          "larger values.  Higher resolutions will create larger image files."))

  (label (position  2  16) (text "Y resolution"))
  (field "yres" (position 20 16) (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)
)
