(form "00804" (size 58  19)
  (heading "DRAW MONITORING PRISMS")

  (label (position  2  3) 
   (text "Define the values to be used for the X and Y axes of the Graph"))
  (label (position  2  4) (text "X Axis"))
  (field "x_axis" (position 2  5) (display_length 18) (input allowed)
    (translate lower) (null disallowed) (max_length 36) 
    )

  (scroll_block "y_axes" (position  27  5) (size 29  5)
     (extra  0  1)
     (scroll_size 29 5)
     (repeat interactive (grow  0  1) (instances  1 (min  1) (max 5)))
    (top 
      (label (position  1  0) (text "Y Axis values"))
        (label
            (position 16 0)
            (text "Colour"
            )
        )
    )

    (main
      (field "y_axis" (position  1  0) (display_length 12) 
        (input allowed) (max_length 18)
        (translate lower) (null allowed)
        )

        (field "colour" 
            (position  16  0) 
            (display_length 10) 
            (input allowed) 
            (max_length 36)
            (translate lower) 
            (null allowed)
            (format colour)
            (default "black")
            (auto_next off)
            )
    )
  )


  (label (position  2  12) (text "Choose prisms to be displayed"))
  (field "prism_selection" (position 2  13) (display_length 18) 
    (input allowed)
    (translate lower) (null disallowed) (max_length 36) 
    (default "all"
    )
    (value_in "first prism" "select prisms" "all prisms")
    )

  (field "multiple_graphs" (position 2  13) (display_length 18) 
    (input allowed) (max_length 36) )

  (scroll_block "prisms" (position  27  12) (size 26  5)
     (extra  0  1)
     (scroll_size 20 200)
     (repeat interactive (grow  0  1) (instances  1 (min  1) (max 200)))
    (top
      (label (position  1  0) (text "Prism ID"))
      (label (position  13  0) (text "Display"))
    )
    (main
      (field "prism_id" (position  1  0) (display_length 10) 
        (input disallowed) (max_length 18)
        (null allowed)
        (dependency (value "prism_selection") != "first prism"))  
      (field "display_prism" (position  13  0) (display_length 1) 
        (input allowed) (max_length 1) 
        (default "Y")
        (value_in "Y" "N")
        (translate upper) (null disallowed)
        (dependency (value "prism_selection") == "select prisms")
        )
    )
  )
  (default_buttons)
)
